mirror of
https://github.com/koalyptus/TableFilter.git
synced 2026-03-18 08:29:50 +01:00
Edited readme
This commit is contained in:
parent
688077b89b
commit
d0734ca149
1 changed files with 5 additions and 3 deletions
|
|
@ -28,12 +28,14 @@ solution
|
|||
##Setup
|
||||
Copy the ``tablefilter`` directory under ``dist`` and place it at desired location in your project. Then include the bundle js file in your page:
|
||||
```shell
|
||||
<script src="``path/to/my/scripts``/tablefilter/tablefilter.js"></script>
|
||||
<script src="path/to/my/scripts/tablefilter/tablefilter.js"></script>
|
||||
```
|
||||
Place the following snippet just under the HTML table
|
||||
Place the following snippet just under the HTML table and always define a ``base_path`` property in the configuration object to reflect the path to the script
|
||||
```shell
|
||||
<script>
|
||||
var tf = new TableFilter('my-table-id');
|
||||
var tf = new TableFilter('my-table-id', {
|
||||
base_path: 'path/to/my/scripts/tablefilter/'
|
||||
});
|
||||
tf.init();
|
||||
</script>
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue