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

com.github.fluorumlabs.disconnect.vaadin.CrudEdit 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.CrudEditElement;
import com.github.fluorumlabs.disconnect.vaadin.types.ItemIndexEvent;
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 com.github.fluorumlabs.disconnect.zero.observable.ObservableEvent;
import js.lang.Any;

/**
 * <vaadin-crud-edit> is a helper element for <vaadin-grid-column> that provides
 * an easily themable button that fires an edit event with the row item as detail
 * when clicked.
 * 

* Typical usage is in a <vaadin-grid-column> of a custom <vaadin-grid> inside * a <vaadin-crud> to enable editing. */ @WebComponent public class CrudEdit extends AbstractComponent implements HasStyle>, HasComponents, Component< ?>> { public CrudEdit() { super(CrudEditElement.TAGNAME()); } /** * Fired when user on the icon. */ public ObservableEvent> editEvent() { return createEvent("edit"); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy