You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the react component rather than the current jQuery DataTable function sounds like a natural move, and it should also make it easier to provide a Dash Component for ITables (#245).
The text was updated successfully, but these errors were encountered:
@AllanJard thank you for developing the react component, it looks great! Also as mentioned above I think it should let me unlock the last Python Web App framework that I wanted to support in ITables, so I am very much looking forward to trying it!
May I ask you three quick questions to help me make this transition in a correct way?
Is it correct that the react component won't convert tables that are initially provided in HTML like these pandas style objects ? - I probably still need the usual DataTable function for those?
Can I pass Javascript callbacks like e.g. formatting callbacks through the datatables options ? I see that some options are explicitly supported but I am not sure re the callbacks.
In the app components, e.g. the Jupyter Widget, I had to resort to destroy for the case when the initial options (say e.g. the data + the columns) are modified. Is there a nicer or an alternative way to do this with the react component?
Correct. You cannot have two different libraries controlling the same DOM. They will each make assumptions that might not hold true when the other one changes the DOM. For example DataTables doesn't expect another library to change the tr rows in the table body.
Yes. You can pass callbacks to the options object - it is just a Javascript object.
Not yet. I do plan to "watch" for changes on configuration options - e.g. enable / disable paging and have it automatically destroy and recreate the DataTable, but that is not something that it does yet.
DataTables now has a react component.
Using the react component rather than the current jQuery DataTable function sounds like a natural move, and it should also make it easier to provide a Dash Component for ITables (#245).
The text was updated successfully, but these errors were encountered: