Usage Example:
HeaderBarPluginheaderBar = new HeaderBarPlugin< >("My Table", "Description"); headerBar.addActionElement(new HeaderBarPlugin.CondenseTableAction< >()); headerBar.addActionElement(new HeaderBarPlugin.StripesTableAction< >()); headerBar.addActionElement(new HeaderBarPlugin.BordersTableAction< >()); headerBar.addActionElement(new HeaderBarPlugin.HoverTableAction< >()); headerBar.addActionElement(new HeaderBarPlugin.ClearSearch< >()); headerBar.addActionElement(new HeaderBarPlugin.SearchTableAction< >()); headerBar.addActionElement(new HeaderBarPlugin.ShowHideColumnsAction< >()); DataTable dataTable = DataTable.create(data); dataTable.addPlugin(headerBar);
T
The data type of the DataTable
public void HeaderBarPlugin(String title)
title
The title to be displayed in the header bar.
public void HeaderBarPlugin(String title, String description)
title
The title to be displayed in the header bar.
description
The description to be displayed in the header bar.
public void onBeforeAddTable(DataTable<T> dataTable)
This method is called before adding the DataTable to the DOM. It adds the header bar and action elements to the DataTable.
dataTable
The DataTable to which the header bar and action elements will be added.
public HeaderBarPlugin<T> addActionElement(HeaderActionElement<T> headerActionElement)
headerActionElement
The HeaderActionElement to be added to the header bar.
This HeaderBarPlugin instance for method chaining.