implement selectRow.clickToExpand

This commit is contained in:
AllenFang
2018-09-28 00:10:13 +08:00
parent 6735536fd8
commit dda8460017
3 changed files with 17 additions and 7 deletions

View File

@@ -18,7 +18,9 @@ const columns = [{
}];
const selectRow = {
mode: 'checkbox'
mode: 'checkbox',
clickToSelect: true,
clickToExpand: true
};
const expandRow = {
@@ -48,7 +50,8 @@ const columns = [{
const selectRow = {
mode: 'checkbox',
clickToSelect: true
clickToSelect: true,
clickToExpand: true
};
const expandRow = {
@@ -67,6 +70,7 @@ const expandRow = {
data={ products }
columns={ columns }
selectRow={ selectRow }
expandRow={ expandRow }
/>
`;