com.github.fluorumlabs.disconnect.vaadin.GridTreeColumn Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of disconnect-vaadin Show documentation
Show all versions of disconnect-vaadin Show documentation
Vaadin components bindings for Disconnect Zero
The newest version!
package com.github.fluorumlabs.disconnect.vaadin;
import com.github.fluorumlabs.disconnect.core.annotations.WebComponent;
import com.github.fluorumlabs.disconnect.vaadin.elements.GridTreeColumnElement;
import com.github.fluorumlabs.disconnect.zero.component.AbstractComponent;
import com.github.fluorumlabs.disconnect.zero.component.Component;
import com.github.fluorumlabs.disconnect.zero.component.HasComponents;
import com.github.fluorumlabs.disconnect.zero.component.HasStyle;
import js.lang.Any;
import javax.annotation.Nullable;
/**
* <vaadin-grid-tree-column>
is a helper element for the <vaadin-grid>
* that provides default template and functionality for toggling tree/hierarchical items.
*
* Example:
* <vaadin-grid items="[[items]]">
* <vaadin-grid-tree-column path="name.first"></vaadin-grid-tree-column>
*
* <vaadin-grid-column>
* ...
*
*/
@WebComponent
public class GridTreeColumn- extends AbstractComponent
>
implements HasStyle, GridTreeColumn- >, HasComponents
, GridTreeColumn- , Component>> {
public GridTreeColumn() {
super(GridTreeColumnElement.TAGNAME());
}
/**
* JS Path of the property in the item used as text content for the tree toggle.
*/
@Nullable
public String path() {
return getNode().getPath();
}
/**
* JS Path of the property in the item used as text content for the tree toggle.
*/
public GridTreeColumn
- path(String path) {
getNode().setPath(path);
return this;
}
/**
* JS Path of the property in the item that indicates whether the item has child items.
*/
@Nullable
public String itemHasChildrenPath() {
return getNode().getItemHasChildrenPath();
}
/**
* JS Path of the property in the item that indicates whether the item has child items.
*/
public GridTreeColumn
- itemHasChildrenPath(String itemHasChildrenPath) {
getNode().setItemHasChildrenPath(itemHasChildrenPath);
return this;
}
}