m3e/ripple
Ripple is connects user input to screen reactions using ripples.
This file was generated by m3e/generator
DO NOT EDIT
Types
Centered is whether the ripple always originates from the center of the element’s bounds, rather than originating from the location of the click event.
pub type Centered {
IsCentered
IsNotCentered
}
Constructors
-
IsCentered -
IsNotCentered
Config is a public record for configuring this component.
pub type Config {
Config(
centered: Centered,
disabled: Disabled,
for: option.Option(String),
radius: option.Option(Float),
unbounded: Unbounded,
)
}
Constructors
-
Config( centered: Centered, disabled: Disabled, for: option.Option(String), radius: option.Option(Float), unbounded: Unbounded, )
Disabled is whether click events will not trigger the ripple.
Ripples can be still controlled manually by using the show and ‘hide’ methods.
pub type Disabled {
IsDisabled
IsNotDisabled
}
Constructors
-
IsDisabled -
IsNotDisabled
Ripple is a View Model for this component
Fields:
- centered: Whether the ripple always originates from the center of the element’s bounds, rather than originating from the location of the click event.
- disabled: Whether click events will not trigger the ripple.
Ripples can be still controlled manually by using the
showand ‘hide’ methods. - for: The identifier of the interactive control to which this element is attached.
- radius: The radius, in pixels, of the ripple.
- unbounded: Whether the ripple is visible outside the element’s bounds.
pub opaque type Ripple
Values
pub fn centered(record: Ripple, centered: Centered) -> Ripple
centered sets the value of centered for this Ripple.
pub const default_centered: Centered
pub fn default_config() -> Config
default_config is the default configuration for this component.
pub const default_disabled: Disabled
pub const default_for: option.Option(String)
pub const default_radius: option.Option(Float)
pub const default_unbounded: Unbounded
pub fn disabled(record: Ripple, disabled: Disabled) -> Ripple
disabled sets the value of disabled for this Ripple.
pub fn for(record: Ripple, for: option.Option(String)) -> Ripple
for sets the value of for for this Ripple.
pub fn from_config(config: Config) -> Ripple
from_config creates a new Ripple from the given configuration.
pub fn radius(
record: Ripple,
radius: option.Option(Float),
) -> Ripple
radius sets the value of radius for this Ripple.
pub fn render(
model: Ripple,
attributes: List(attribute.Attribute(msg)),
) -> element.Element(msg)
render creates a Lustre Element for a Ripple
pub fn render_config(
c: Config,
attributes: List(attribute.Attribute(msg)),
) -> element.Element(msg)
render_config creates a Lustre Element from a Ripple Config