All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.fluorumlabs.disconnect.vaadin.CrudEditColumn Maven / Gradle / Ivy

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; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy