Skip to content
This repository was archived by the owner on Jan 10, 2018. It is now read-only.

API and features description

Arthur edited this page Feb 22, 2016 · 6 revisions

Overview of GigaTables API and features

Basic knowledge

To create simple instance of GigaTables one should create javascript (with lniked JQuery of course) like:

        $('#gigatable').GigaTable({
          struct: {// all in
            search: ['top', 'bottom'],
            rowsSelector: ['asc', 'top', 'bottom'],
            pagination: ['bottom']
          },
          ajax: 'gigatables.php',
          columns: [
            {data: "id"},
            {data: "desc"},
            {data: "title"},
            {data: "date"},
            {data: "types"},
            {data: "info"}
          ]
        });   

Where:

  • "#gigatable" is the id of a <table> tag,
  • struct is the basic structure of a layout with it`s features (ex.: search box, pagination etc.),
  • ajax element contains the main script, that will load table content
  • columns actual columns for a table

Clone this wiki locally