Toolbars and toolbar buttons

Toolbars display one or more toolbar buttons. They are primarily used used in tools for object management, and in main interface UI components.

var myToolbar = new Toolbar() {
    Headline = "Additional functions"
}
.AppendTo( myTab );

Buttons should be added to the Toolbar's Items control.

new ToolbarButton
{
    Text = GridObjectsUiResources.AddNewButton,
    Icon = "gearwheel",
    Client = {
        Click = ClientUtil.EditAndSaveObject( MySettings.Instance )
    }
}

When the button is clicked the client action bound to Client.Click is executed. 

 

Last updated 2016-01-15