Pass views as children to Datatable.Cell
See original GitHub issueFeature Description
I’d like to have the ability to pass custom views as children to be displayed within the Datatable.Cell as such:
<DataTable.Cell >
<View style={styles.actionCell}>
<IconButton
icon="delete"
color={Colors.red500}
size={20}
onPress={() => console.log('Pressed')}
/>
<IconButton
icon="edit"
color={Colors.grey400}
size={20}
onPress={() => console.log('Pressed')}
/>
</View>
</DataTable.Cell>
Motivation
The reason is, as the example above shows, I need to have quick actions available for the rows in the table.
Thank you for your efforts!
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
row().child() - DataTables
DataTables has the ability to show child rows for each row (termed a "parent row" in this documentation to distinguish from the child...
Read more >Passing An Array To Datatable Child Row - Stack Overflow
I'm passing them all through one array, in the Child Row, I am calling the data from the array index and then assign...
Read more >Find Children and assigning to a Second Data Table - Studio
Find Children and assigning to a Second Data Table · Opens Excel · Writes Sheet1 to DataTable1 · Writes Sheet2 to DataTable2 ·...
Read more >Pass DataTable Selected Row from Parent to child Record Page
this.recordId = selectedRows[0].Id;. This should be all the changes you need to make. Share.
Read more >DataTable Class (System.Data) - Microsoft Learn
DataTable table = new DataTable("childTable"); DataColumn column; DataRow row; ... DataRelation requires two DataColumn // (parent and child) and a name.
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 FreeTop 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
Top GitHub Comments
Just render a view. You don’t need to wrap it in
DataTable.Cell
That works just fine! Thank You so much! (Sorry, I wasn’t paying attention)