Search code examples
javascriptjqueryfootable

Footable Memory Plugin


Installing this plugin. The documents say:

 * Disabled by default, to enable add the following section to the footable
 * options:
 *
 *   $('#table').footable({
 *     memory: {
 *       enabled: true
 *     }
 *   });

Where the heck is this section to edit this code to enable? I have been all over the repository and documentation and I still don't have a clue.

This should be an easy one if someone could just point to where it goes...

Thanks!


Solution

  • You have to select your table with $('#your-table-id') and add the footable plugin to it using to code shown in your question.
    You should add the code before your closing bode tag, like this:

      <script type="text/javascript">
        $(document).ready(function(){
          $('#your-table-id').footable({
              memory: {
                enabled: true
              }
            });
        });
      </script>
    

    I assume you have the jQuery Framework and the plugin already included into your page.