ModifiersBuilders.Clickable
public final class ModifiersBuilders.Clickable
A modifier for an element which can have associated Actions for click events. When an element with a ClickableModifier is clicked it will fire the associated action.
Summary
Nested types |
|---|
public final class ModifiersBuilders.Clickable.BuilderBuilder for |
Public methods |
|
|---|---|
@NonNull String |
Gets the ID associated with this action. |
@Nullable ActionBuilders.Action |
Gets the action to perform when the element this modifier is attached to is clicked. |
Public methods
public @NonNull StringgetId()
Gets the ID associated with this action. Intended for testing purposes only.
public @Nullable ActionBuilders.ActiongetOnClick()
Gets the action to perform when the element this modifier is attached to is clicked. Intended for testing purposes only.