DataTable does not inherint TableOptions props
See original GitHub issueAs the title says, the DataTable components have not inherited props from TableOptions such as columns, data
according to vscode’s typescript IntelliSense.
I copied example code from https://www.saas-ui.dev/docs/data-display/data-table#typescript
I thought it was because of types issues regarding columns, so I removed them but the error still persisted
Removing columns
from DataTable
now shows that prop data
does not exist
Type error disappears after removing all props
Issue Analytics
- State:
- Created a year ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
Inherit settings from another datatable? — DataTables forums
Currently there is no why to inherit from an existing DataTable directly - however you could: Set defaults; Use a common initialisation object ......
Read more >Issue on inheriting from DataTable - Stack Overflow
I am pretty sure the the DataTable Class does not have any virtual methods or properties that you could override, and memeber hiding...
Read more >Custom stuff while table data is loading · Issue #60 - GitHub
Hello, When the data for the table is loading, users see "Sorry, no matching records found" for a couple seconds while it is...
Read more >DataTable Class (System.Data) - Microsoft Learn
Gets a value indicating whether the component is currently in design mode. (Inherited from MarshalByValueComponent). DisplayExpression. Gets or sets the ...
Read more >DataTable code and API | Table - Semrush Developers
Since columns and cells are inherited from the Flex component, you can use justifyContent/alignItems to align the column to the desired edge. This...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This approach isn’t bad. Well, no biggie. If I find myself in need of extra features and they are not available out of the box, I can just copy the original code and tweak it to suit my needs.
It might be possible to do something like this.
There’s quite some work involved to make this happen, so it won’t make it into the 1.0 release for now. But will add this to the roadmap.