Package io.jenkins.plugins.datatables
Klasse TableConfiguration
java.lang.Object
io.jenkins.plugins.datatables.TableConfiguration
Provides a configuration for the whole DataTable. This is merged with a default configuration in table.js.
- Autor:
- Andreas Pabst
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
The possible values of the select.style option, which is used for enabling the selection for datatables and setting its style (the default isTableConfiguration.SelectStyle.OS
. -
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuttons()
Enable the default buttons.Enable specific buttons.Enable reordering of table columns.Get the configuration as JSON.boolean
Returns whether buttons were configured to be used.boolean
Returns whether column reordering was configured to be used.boolean
Returns whether paging is configured to be used.boolean
Returns whether the responsive extension was configured to be used.boolean
Returns whether select is configured to be used.boolean
Returns whether stateSave is configured to be used.noPaging()
Disable paging.Make the table responsive, i.e.select
(TableConfiguration.SelectStyle selectStyle) Enable selection.Enable saving of the table state.
-
Konstruktordetails
-
TableConfiguration
public TableConfiguration()
-
-
Methodendetails
-
responsive
Make the table responsive, i.e. the columns wrap over to a child column.- Gibt zurück:
- this
TableConfiguration
for chaining methods - Siehe auch:
-
isUseResponsive
public boolean isUseResponsive()Returns whether the responsive extension was configured to be used.- Gibt zurück:
- true, if the responsive extension should be used, false otherwise
-
colReorder
Enable reordering of table columns.- Gibt zurück:
- this
TableConfiguration
for chaining methods - Siehe auch:
-
isUseColReorder
public boolean isUseColReorder()Returns whether column reordering was configured to be used.- Gibt zurück:
- true, if column reordering should be used, false otherwise
-
buttons
Enable the default buttons.- Gibt zurück:
- this
TableConfiguration
for chaining methods - Siehe auch:
-
buttons
Enable specific buttons.- Parameter:
types
- List of buttons to use- Gibt zurück:
- this
TableConfiguration
for chaining methods - Siehe auch:
-
isUseButtons
public boolean isUseButtons()Returns whether buttons were configured to be used.- Gibt zurück:
- true, if buttons should be used, false otherwise
-
select
Enable selection.- Parameter:
selectStyle
- Theselection style
- Gibt zurück:
- this
TableConfiguration
for chaining methods - Siehe auch:
-
isUseSelect
public boolean isUseSelect()Returns whether select is configured to be used.- Gibt zurück:
- true, if select should be used, false otherwise
-
stateSave
Enable saving of the table state.- Gibt zurück:
- this
TableConfiguration
for chaining methods - Siehe auch:
-
isUseStateSave
public boolean isUseStateSave()Returns whether stateSave is configured to be used.- Gibt zurück:
- true, if stateSave should be used, false otherwise
-
noPaging
Disable paging.- Gibt zurück:
- this
TableConfiguration
for chaining methods - Siehe auch:
-
isUsePaging
public boolean isUsePaging()Returns whether paging is configured to be used.- Gibt zurück:
- true, if paging should be used, false otherwise.
-
getConfiguration
Get the configuration as JSON.- Gibt zurück:
- a JSON Object with the configuration
-