Skip to content

Commit 9c19707

Browse files
committed
Add event callback example.
1 parent ebef016 commit 9c19707

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

html-builder-callbacks.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,12 @@ You can use a `js` string for each valid callback as documented on [`datatables.
1919
|`stateLoadParams` | State loaded - data manipulation callback |
2020
|`stateSaveCallback` | Callback that defines how the table state is stored and where. |
2121
|`stateSaveParams` | State save - data manipulation callback |
22+
23+
## Example
24+
In this example, we will hook on the the `drawCallback` of dataTable.
25+
26+
```php
27+
$builder->parameters([
28+
'drawCallback' => 'function() { alert("Table Draw Callback") }',
29+
]);
30+
```

0 commit comments

Comments
 (0)