Refactor table widget to use prototype inheritance better
This commit is contained in:
parent
d31e0f950d
commit
0826c64719
3 changed files with 188 additions and 211 deletions
|
@ -20,7 +20,7 @@ $(document).ready(function() {
|
|||
|
||||
|
||||
//Set up the div with id "example-table" as a datatable.
|
||||
var table = AIRTIME.widgets.table.init(
|
||||
var table = new AIRTIME.widgets.table(
|
||||
$('#example-table'), //DOM node to create the table inside.
|
||||
true, //Enable item selection
|
||||
myToolbarButtons, //Toolbar buttons
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue