This example demos a bulk update UI for a table of data.
Note that the "server side" implementation is mocked out using mockjax, so you can see the entire implementation. Click the "Source Code" tab to see the code.
form
tag, with checkboxes on each row indicating the row id.
ic-include
attribute. The drop-down button targets the body of the table using the
ic-target
attribute and specifies an request indicator via the
ic-indicator
attribute.
ic-post-to
to /activate
and /deactivate
respectively. Both options inherit all the
attibutes specified by the parent dropdown button.
activate
or deactivate
to a row that is activated or deactivated. Using
CSS transitions and the ic-transitioning
, we can flash the color of these rows green or red,
respectively.