Sigma.ToolFactroy
Index
Sigma
Sigma.Grid
Sigma.Column
Sigma.Column.Editor
Sigma.DataSet
Sigma.DataSet.Field
Sigma.Grid.PageInfo
Sigma.Grid.SortInfo
Sigma.Grid.FilterInfo
Sigma.Grid.Event
Sigma.Grid.EventTarget
Sigma.ToolFactroy
DataExchange
Static Methods
register
The following sample shows how to add your own button on tool bar.
GT.ToolFactroy.register( 'mybutton', //id of the button. Lower case accepted only. { // css style of the button // .mybutton-cls { // background : url(./mybutton.png) no-repeat center center; // } cls : 'mybutton-cls', // tip of the button toolTip : 'Press this button to get grid id', //function fired when button pressed action : function(event,grid) { alert( 'The id of this grid is '+grid.id) } } ); //show your own button toolbarContent : 'nav | mybutton | state' ,