|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.github.dandelion.datatables.core.extension.AbstractExtension
com.github.dandelion.datatables.core.extension.theme.Bootstrap3ResponsiveTheme
public class Bootstrap3ResponsiveTheme
Extension that adds a responsive behaviour to the table.
Based on datatables -responsive, developed by Comanche.
The extension updates the asset graph with the bootstrap2-responsive bundle, add necessary variables and adds the needed DataTable's parameters.
Also note that the HTML markup needs to be updated with the
data-class and data-hide dynamic attributes.
For example:
<datatables:table id="myTableId" data="${persons}" ext="bootstrap2,bootstrap2-responsive">
<datatables:column title="Id" property="id" data-class="expand" />
<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" data-hide="phone,tablet" />
</datatables:table>
TableConfig.CSS_THEME,
TableConfig.CSS_THEMEOPTION| Constructor Summary | |
|---|---|
Bootstrap3ResponsiveTheme()
|
|
| 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 |
|---|
public Bootstrap3ResponsiveTheme()
| Method Detail |
|---|
public String getName()
ExtensionReturns the extension's name. The name is case-insensitive when loaded by the JSP taglib or the Thymelead dialect.
public void setup(HtmlTable table)
setup in class AbstractExtension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||