com.github.fluorumlabs.disconnect.vaadin.CrudEdit 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.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");
}
}