This is a datagrid widget, that can render in various ways
Mikkel Bergmann, http://www.pointful.com
pax. | This is a datagrid widget, that can render in various ways |
Functions | |
pax. | Initialises a grid for ajax loading |
pax. | Returns a PAX template for the datagrid |
Initialises a grid for ajax loading
target | an element to render the grid into |
args | arguments for the grid widget |
nothing
<div id='widget.datagrid.init.example1'></div> [:. var args = { url: '/pax/documentation/pax.widget.example.table.php', limit: 10, ignoreCols: [ 'notes' ], colWidth: { id: '30px', name: '30%', country: '30%' }, sort: 'name' }; pax.widget.datagrid.init( $('widget.datagrid.init.example1'), args ); :]
This example sets up a simple ajax data grid, getting the data from the given php file. See the data grid demo for a live demo: http://paxjs.com/demo_data_grid.htm
Returns a PAX template for the datagrid
pax.widget.datagrid.template = function( grid )