The views form (represented by the tag <form> ) and grids (represented by the tag <grid> ) can define the buttons in the toolbar.
The tag <tooolbar> to customize the buttons.
<form name="some-form" title="Some Form" model="my-model">
<toolbar>
<button name="save" title="" hidden="true"/>
<button name="copy" title="" hidden="false"/>
<button name="hello" title="Hello..." onClick="some-action"/>
<button name="world" title="World..." onClick="another-action"/>
</toolbar>
...
</form>
In form view, the toolbar is enriched by two new buttons: hello and world. Natives buttons save and copy are hidden. Other native buttons retain their default behaviors.
<grid name="some-grid" title="Some grid" model="my-model">
<toolbar>
<button name="hello" title="Hello..." onClick="some-action"/>
<button name="world" title="World..." onClick="another-action"/>
</toolbar>
...
</grid>
Also for grid, toolbar is enriched by two new buttons: hello and world. Natives buttons have their default behaviors.
Default buttons of the toolbar are customizable:
The attribute prompt = "" can be used to display a confirmation message before processing.
By default all buttons are displayed. They can, thereafter, be hidden by actions.
In grid view, context took action lists the "id" of the selected records.