Grid
A sub namespace of UI, exclusive for grid operations
//accessing to ui.grid methods
SW.UI.Grid.{methodName}
addToolbarButtons
Description
This method can be to add buttons in the grid toolbar.
Method(s)
1 function addToolbarButtons(toolbarEvent: any, buttonsList: Button[]): void;
Parameter | Type | Required | Defaults | Description |
---|---|---|---|---|
toolbarEvent | any | true | The target dataGrid | |
buttonsList | Button | true | Buttons to add |
Basic Usage
SW.UI.Grid.addToolbarButtons(toolbarEvent, buttonsList);