Class AdvancedGrid<T>
java.lang.Object
com.vaadin.flow.component.Component
org.vaadin.addons.antlerflow.grid.AdvancedGrid<T>
- Type Parameters:
T- the type of items contained in the grid
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable
@Tag("af-advanced-grid")
@JsModule("./antlerflow/advanced-grid/advanced-grid.ts")
public class AdvancedGrid<T>
extends com.vaadin.flow.component.Component
implements com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle
AdvancedGrid is a component that enhances the functionality of a standard Grid by incorporating
built-in pagination, data export capabilities, and a customizable toolbar. It is designed to work
with various data providers and supports dynamic setting of data, page sizes, and pagination
visibility.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAdvancedGrid(int pageSize) AdvancedGrid(com.vaadin.flow.component.grid.Grid<T> grid) AdvancedGrid(com.vaadin.flow.data.provider.BackEndDataProvider<T, Void> dataProvider) AdvancedGrid(com.vaadin.flow.data.provider.DataProvider<T, Void> dataProvider) AdvancedGrid(com.vaadin.flow.data.provider.InMemoryDataProvider<T> inMemoryDataProvider) AdvancedGrid(com.vaadin.flow.data.provider.ListDataProvider<T> dataProvider) AdvancedGrid(Class<T> beanType) AdvancedGrid(Class<T> beanType, boolean autoCreateColumns) AdvancedGrid(Collection<T> items) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToActions(com.vaadin.flow.component.Component... components) Adds components to the "toolbar" slot.voidaddToFilters(com.vaadin.flow.component.Component... components) Adds components to the "toolbar" slot.voidaddToFooter(com.vaadin.flow.component.Component... components) Adds components to the "footer" slot.voidenableExport(boolean exportEnabled) voidsetDataProvider(com.vaadin.flow.data.provider.DataProvider<T, ?> dataProvider) voidsetInnerGrid(com.vaadin.flow.component.grid.Grid<T> innerGrid) Injects the given Grid into the "grid" slot inside the Lit template.voidvoidsetPageSize(int pageSize) voidsetPageSizes(Integer... pageSizes) voidsetPaginationVisibility(boolean visibility) Methods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
AdvancedGrid
public AdvancedGrid() -
AdvancedGrid
-
AdvancedGrid
-
AdvancedGrid
-
AdvancedGrid
-
AdvancedGrid
-
AdvancedGrid
-
AdvancedGrid
public AdvancedGrid(int pageSize) -
AdvancedGrid
-
AdvancedGrid
-
-
Method Details
-
setInnerGrid
Injects the given Grid into the "grid" slot inside the Lit template. -
setItems
-
setDataProvider
-
setPageSizes
-
setPageSize
public void setPageSize(int pageSize) -
enableExport
public void enableExport(boolean exportEnabled) -
setPaginationVisibility
public void setPaginationVisibility(boolean visibility) -
addToFilters
public void addToFilters(com.vaadin.flow.component.Component... components) Adds components to the "toolbar" slot. -
addToActions
public void addToActions(com.vaadin.flow.component.Component... components) Adds components to the "toolbar" slot.
-