com.github.dandelion.datatables.core.extension.theme
Class Bootstrap3Theme

java.lang.Object
  extended by com.github.dandelion.datatables.core.extension.AbstractExtension
      extended by com.github.dandelion.datatables.core.extension.theme.Bootstrap3Theme
All Implemented Interfaces:
Extension

public class Bootstrap3Theme
extends AbstractExtension

Bootstrap v3 DataTables theme.

Example usage with JSP:

 <datatables:table id="myTableId" data="${persons}" cssClass="table" theme="bootstrap3">
    <datatables:column title="Id" property="id" />
    <datatables:column title="FirstName" property="firstName" />
    <datatables:column title="LastName" property="lastName" />
    <datatables:column title="Street" property="address.town.name" />
    <datatables:column title="Mail" property="mail" />
 </datatables:table>
 

Example usage with Thymeleaf:

 <table id="myTableId" dt:table="true" dt:theme="bootstrap3">
    ...
 <table/>
 

Since:
0.10.0
Author:
Thibault Duchateau
See Also:
TableConfig.CSS_THEME

Constructor Summary
Bootstrap3Theme()
           
 
Method Summary
 String getName()
           Returns the extension's name.
 void setup(HtmlTable table)
          
 
Methods inherited from class com.github.dandelion.datatables.core.extension.AbstractExtension
addBundle, addBundleParameter, addCallback, addCallback, addParameter, addParameter, addParameter, appendToAfterAll, appendToAfterStartDocumentReady, appendToBeforeAll, appendToBeforeEndDocumentReady, appendToBeforeStartDocumentReady, equals, getAfterAll, getAfterStartDocumentReady, getBeforeAll, getBeforeEndDocumentReady, getBeforeStartDocumentReady, getConfigGenerator, getContext, getDynamicAttributes, getFunction, getParameters, hashCode, isEnabled, isNotNull, setConfigGenerator, setConfs, setFunction, setupWrapper
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bootstrap3Theme

public Bootstrap3Theme()
Method Detail

getName

public String getName()
Description copied from interface: Extension

Returns the extension's name. The name is case-insensitive when loaded by the JSP taglib or the Thymelead dialect.


setup

public void setup(HtmlTable table)

Specified by:
setup in class AbstractExtension


Copyright © 2013–2014 Dandelion Project. All rights reserved.