"Datatable" plugin

Parent Previous Next

"ARI Smart Content - Data Table" plugin converts HTML tables to advanced tables with progressive interaction controls.. The plugin can be enabled/disabled and configured on "Extensions → Plugin Manager" page on Joomla! backend. Common information how to use "ARI Smart Content" applications plugins is here. {datatable} plugin tag is used for the plugin. The following code converts a simple HTML table to a datatable:


{datatable}

       <table>

               <thead>

                       <tr>

                               <th>Column 1</th>

                               <th>Column 2</th>

                               <th>Column 3</th>

                       </tr>

               </thead>

               <tbody>

                       <tr>

                               <td>Value 1-1</td>

                               <td>Value 1-2</td>

                               <td>Value 1-3</td>

                       </tr>

                       <tr>

                               <td>Value 2-1</td>

                               <td>Value 2-2</td>

                               <td>Value 2-3</td>

                       </tr>

                       <tr>

                               <td>Value 3-1</td>

                               <td>Value 3-2</td>

                               <td>Value 3-3</td>

                       </tr>

               </tbody>

       </table>

{/datatable}


It is also possible to use the following code:


{datatable}

       <table>

               <tr>

               <td>Column 1</td>

               <td>Column 2</td>

               <td>Column 3</td>

       </tr>

               <tr>

                       <td>Value 1-1</td>

                       <td>Value 1-2</td>

                       <td>Value 1-3</td>

               </tr>

               <tr>

                       <td>Value 2-1</td>

                       <td>Value 2-2</td>

                       <td>Value 2-3</td>

               </tr>

               <tr>

                       <td>Value 3-1</td>

                       <td>Value 3-2</td>

                       <td>Value 3-3</td>

               </tr>

       </table>

{/datatable}


Wrap a HTML table with {datatable} and {/datatable} tags.



Plugin settings


The following parameters can be defined on plugin settings page ("Extensions → Plugin Manager → ARI Smart Content - Data Table" page on Joomla! backend):















"Paging settings" parameters section is used to configure paging:













"Fixed columns" parameters section is used to configure fixed columns. These columns will be frozen and not scrollable. It is useful if scrolling table is used and you want to not scroll some important column(s). The following parameters are available:







"Additional settings" is used to specify some additional parameters for datatable. The following parameters are supported:



















Plugin code syntax


The following attributes can be used for {datatable} tag:



{datatable theme="lefrog"}

       ... a HTML table goes here ...

{/datatable}



{datatable loadingPane="1"}

       ... a HTML table goes here ...

{/datatable}