Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getImages() {
return new DataSource({
store: images
});
}
}
getProducts() {
return new DataSource({
store: products,
group: 'Category'
});
}
constructor(props: any) {
super(props);
this.state = {
text: "",
items
};
this.dataSource = new DataSource(
{
store: {
type: "array",
data: items
},
sort: [
{ getter: "text", desc: true}
],
pageSize: 1
}
);
this.updateText = this.updateText.bind(this);
this.addTextToList = this.addTextToList.bind(this);
}
.then(json => {
this.jobDatasource = new DataSource({
store: json['hydra:member']
})
})
.catch(error => {
getPlainProducts() {
return new DataSource({
store: products.slice(0, 4)
});
}