Skip to content

Commit

Permalink
Fixes liferay#868 | Adds examples to ManagementToolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
diegonvs committed Feb 27, 2019
1 parent f5d125a commit 7038235
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions packages/clay-management-toolbar/demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,48 @@ <h2>With results bar and filter labels</h2>
},
'#active-checked-select-all-block');

//Active state with checkbox checked selecting one item
new metal.ClayManagementToolbar({
actionItems: actionItems,
checkboxStatus: 'checked',
selectable: true,
selectedItems: 1,
showInfoButton: true,
showSelectAllButton: true,
spritemap: spritemap,
supportsBulkActions: true,
totalItems: 10,
},
'#active-checked-select-all-block');

//Active state with checkbox checked selecting one item from a unique element selection.
new metal.ClayManagementToolbar({
actionItems: actionItems,
checkboxStatus: 'checked',
selectable: true,
selectedItems: 1,
showInfoButton: true,
showSelectAllButton: true,
spritemap: spritemap,
supportsBulkActions: true,
totalItems: 1,
},
'#active-checked-select-all-block');

//Active state with checkbox checked don't selecting any items.
new metal.ClayManagementToolbar({
actionItems: actionItems,
checkboxStatus: 'checked',
selectable: true,
selectedItems: 0,
showInfoButton: true,
showSelectAllButton: true,
spritemap: spritemap,
supportsBulkActions: true,
totalItems: 1,
},
'#active-checked-select-all-block');

//Active State with select all button without select all button
new metal.ClayManagementToolbar({
actionItems: actionItems,
Expand Down

0 comments on commit 7038235

Please sign in to comment.