Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wiki:custom_buttons [2009/08/20 16:31]
dhubenov fixed wrong property buttonimg to buttonicon
wiki:custom_buttons [2010/05/04 11:51]
tony
Line 10: Line 10:
 ... ...
 jQuery("#​grid_id"​).navGrid("#​pager",​...).navButtonAdd("#​pager",​{parameters});​ jQuery("#​grid_id"​).navGrid("#​pager",​...).navButtonAdd("#​pager",​{parameters});​
 +...
 +</​script>​
 +</​code>​
 +or using the new API
 +<code javascript>​
 +<​script>​
 +...
 +jQuery("#​grid_id"​).jqGrid('​navGrid',"#​pager",​...).jqGrid('​navButtonAdd',"#​pager",​{parameters});​
 ... ...
 </​script>​ </​script>​
Line 20: Line 28:
 where where
   * caption: (string) the caption of the button, can be a empty string.   * caption: (string) the caption of the button, can be a empty string.
-  * buttonicon: (string) is the ui icon name from UI theme icon set.+  * buttonicon: (string) is the ui icon name from UI theme icon set. If this option is set to "​none" ​ only the text appear.
   * onClickButton:​ (function) action to be performed when a button is clicked. Default null.   * onClickButton:​ (function) action to be performed when a button is clicked. Default null.
   * position: ("​first"​ or "​last"​) the position where the button will be added (i.e., before or after the standard buttons).   * position: ("​first"​ or "​last"​) the position where the button will be added (i.e., before or after the standard buttons).
   * title: (string) a tooltip for the button.   * title: (string) a tooltip for the button.
   * cursor : string (default pointer) determines the cursor when we mouseover the element   * cursor : string (default pointer) determines the cursor when we mouseover the element
 +  * id : string (optional) - if set defines the id of the button (actually the id of TD element) for future manipulation
  
 <​note>​In order to use navButtonAdd method a navGrid method should be called before that as seen in the example above</​note>​ <​note>​In order to use navButtonAdd method a navGrid method should be called before that as seen in the example above</​note>​

QR Code
QR Code wiki:custom_buttons (generated for current page)