public class Parameter extends Object
A parameter can be seen as a name/value pair in the DataTables configuration Javascript object.
Some extension may need to modify the DataTables parameters object, that's why there's a Mode attribute, which defines the way the configuration will affect this object.
For example, in order to use the ScrollerPlugin
, you need to modify
the sDom parameter, adding a S to the default value (which
is lfrtip). That's why in the setup
method, you will
find among others :
addParameter(new Configuration(DTConstants.DT_DOM, "S", Configuration.Mode.APPEND));
So the final value of the sDom parameter will be lfrtipS
Modifier and Type | Class and Description |
---|---|
static class |
Parameter.Mode |
Constructor and Description |
---|
Parameter(String name) |
Parameter(String name,
Object value) |
Parameter(String name,
Object value,
Parameter.Mode mode) |
public Parameter(String name)
public Parameter(String name, Object value, Parameter.Mode mode)
public String getName()
public void setName(String name)
public Object getValue()
public void setValue(Object value)
public Parameter.Mode getMode()
public void setMode(Parameter.Mode mode)
Copyright © 2013–2015 Dandelion Project. All rights reserved.