This pull request adds a new property called showRowRemoveButton to the TableRowMenuComponent and the CpsTreeTableComponent. This property allows the user to control whether the 'Remove' button should be displayed in the row menu of the tree table. By default, the 'Remove' button is shown, but it can be hidden by setting the property to false.
Changes
Added showRowRemoveButton property to TableRowMenuComponent and CpsTreeTableComponent with default value of true.
Added logic to TableRowMenuComponent to conditionally push the 'Remove' menu item based on the showRowRemoveButton value.
Added examples to the TreeTablePageComponent to demonstrate the usage of the showRowRemoveButton property.
Screenshots
Tree table with row menus and 'Remove' buttons:
Tree table with row menus and no 'Remove' buttons:
Add showRowRemoveButton property to TableRowMenuComponent and CpsTreeTableComponent
Resolves #295
This pull request adds a new property called
showRowRemoveButton
to theTableRowMenuComponent
and theCpsTreeTableComponent
. This property allows the user to control whether the 'Remove' button should be displayed in the row menu of the tree table. By default, the 'Remove' button is shown, but it can be hidden by setting the property tofalse
.Changes
showRowRemoveButton
property toTableRowMenuComponent
andCpsTreeTableComponent
with default value oftrue
.TableRowMenuComponent
to conditionally push the 'Remove' menu item based on theshowRowRemoveButton
value.TreeTablePageComponent
to demonstrate the usage of theshowRowRemoveButton
property.Screenshots
Tree table with row menus and 'Remove' buttons:
Tree table with row menus and no 'Remove' buttons: