com.github.fluorumlabs.disconnect.vaadin.mixins.HasRowDetailsMixin 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.mixins;
import com.github.fluorumlabs.disconnect.vaadin.elements.mixins.RowDetailsMixin;
import com.github.fluorumlabs.disconnect.vaadin.renderers.RowDetailsRenderer;
import com.github.fluorumlabs.disconnect.zero.component.Component;
import js.lang.Any;
import js.util.collections.Array;
import javax.annotation.Nullable;
public interface HasRowDetailsMixin- , T extends Component
>
extends Component {
/**
* An array containing references to items with open row details.
*/
@Nullable
default Array- detailsOpenedItems() {
return getNode().getDetailsOpenedItems();
}
/**
* An array containing references to items with open row details.
*/
default T detailsOpenedItems(ITEM... detailsOpenedItems) {
getNode().setDetailsOpenedItems(detailsOpenedItems);
return (T) this;
}
default T detailsOpenedItems(Array
- detailsOpenedItems) {
getNode().setDetailsOpenedItems(detailsOpenedItems);
return (T) this;
}
/**
* Custom function for rendering the content of the row details.
* Receives three arguments:
*
*
* root
The row details content DOM element. Append your content to it.
* grid
The <vaadin-grid>
element.
* rowData
The object with the properties related with
* the rendered item, contains:
*
* rowData.index
The index of the item.
* rowData.item
The item.
*
*
*
*/
@Nullable
default RowDetailsRenderer- rowDetailsRenderer() {
return getNode().getRowDetailsRenderer();
}
/**
* Custom function for rendering the content of the row details.
* Receives three arguments:
*
*
* root
The row details content DOM element. Append your content to it.
* grid
The <vaadin-grid>
element.
* rowData
The object with the properties related with
* the rendered item, contains:
*
* rowData.index
The index of the item.
* rowData.item
The item.
*
*
*
*/
default T rowDetailsRenderer(RowDetailsRenderer- rowDetailsRenderer) {
getNode().setRowDetailsRenderer(rowDetailsRenderer);
return (T) this;
}
/**
* FIXME param item:
Open the details row of a given item.
*/
default void openItemDetails(ITEM item) {
getNode().openItemDetails(item);
}
/**
* Close the details row of a given item.
*/
default void closeItemDetails(ITEM item) {
getNode().closeItemDetails(item);
}
}