pub struct RowAction(pub Id<Object>);
Expand description

Represents an action that can be displayed when a user swipes-to-reveal on a ListViewRow. You return this from the appropriate delegate method, and the system will handle displaying the necessary pieces for you.

Tuple Fields

0: Id<Object>

Implementations

Creates and returns a new RowAction. You’d use this handler to configure whatever action you want to show when a user swipes-to-reveal on your ListViewRow.

Additional configuration can be done after initialization, if need be.

These run on the main thread, as they’re UI handlers - so we can avoid Send + Sync on our definitions.

Sets the title of this action.

Sets the background color of this action.

Sets the style of this action.

Sets an optional image for this action.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.