1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-23 16:52:26 +02:00

Edited readme

This commit is contained in:
Max Guglielmi 2015-06-08 21:55:57 +10:00
parent 688077b89b
commit d0734ca149

View file

@ -28,12 +28,14 @@ solution
##Setup ##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: 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 ```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 ```shell
<script> <script>
var tf = new TableFilter('my-table-id'); var tf = new TableFilter('my-table-id', {
base_path: 'path/to/my/scripts/tablefilter/'
});
tf.init(); tf.init();
</script> </script>
``` ```