Closed chmuche closed 7 years ago
Hello, I try too use the property dataSource but I have always the same error : Uncaught TypeError: dataSource is not a function(…)
my code :
<iron-data-table selection-enabled multi-selection id="mainDataTable" page-size="20" data-source="={{dataSource}}"> <content></content> </iron-data-table> properties: { dataSource: { notify: true, value: function() { return this._dataSource.bind(this); } } } _dataSource: function (opts, success, err) { console.log("_dataSource"); },
but I have the error on the part of code in iron-data-table : line 849
dataSource({ page: page, pageSize: this.pageSize, filter: this.filter, sortOrder: this.sortOrder }, success, err);
or when I insert a little console.log(dataSource); above of your code I see my function
console.log(dataSource);
I tried other things like
properties: { dataSource: { notify: true, value: function() { return this._dataSource; } } }
Thanks for your help, BTW I'm not a Js master only 2 months of painful :smile:
My mad data-source="={{dataSource}}" is wrong :-1:
Hello, I try too use the property dataSource but I have always the same error : Uncaught TypeError: dataSource is not a function(…)
my code :
but I have the error on the part of code in iron-data-table : line 849
or when I insert a little
console.log(dataSource);
above of your code I see my functionI tried other things like
Thanks for your help, BTW I'm not a Js master only 2 months of painful :smile: