com.github.fluorumlabs.disconnect.vaadin.CrudEditColumn 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.CrudEditColumnElement;
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 javax.annotation.Nullable;
/**
* <vaadin-crud-edit-column>
is a helper element for the <vaadin-grid>
* that provides a clickable and themable edit icon.
*
* Typical usage is in a custom <vaadin-grid>
inside a <vaadin-crud>
.
*
*
Example:
* <vaadin-grid items="[[items]]">
* <vaadin-crud-edit-column></vaadin-crud-edit-column>
*
* <vaadin-grid-column>
* ...
*
*/
@WebComponent
public class CrudEditColumn extends AbstractComponent
implements HasStyle, HasComponents> {
public CrudEditColumn() {
super(CrudEditColumnElement.TAGNAME());
}
/**
* The arial-label for the edit button
*/
@Nullable
public String ariaLabel() {
return getNode().getAriaLabel();
}
/**
* The arial-label for the edit button
*/
public CrudEditColumn ariaLabel(String ariaLabel) {
getNode().setAriaLabel(ariaLabel);
return this;
}
}