m3e/focus_trap

FocusTrap is a non-visual element used to trap focus within nested content.

This file was generated by m3e/generator

     DO NOT EDIT

Types

Disabled is disables the focus trap.

pub type Disabled {
  IsDisabled
  IsNotDisabled
}

Constructors

  • IsDisabled
  • IsNotDisabled

FocusTrap is a View Model for this component

Fields:

  • disabled: Disables the focus trap.
pub opaque type FocusTrap

Values

pub const default_disabled: Disabled
pub fn disabled(arg: FocusTrap, disabled: Disabled) -> FocusTrap

disabled sets the value of disabled for this FocusTrap.

pub fn new(disabled: Disabled) -> FocusTrap

new creates a new FocusTrap with the default configuration.

pub fn render(
  model: FocusTrap,
  attributes: List(attribute.Attribute(msg)),
  children: List(element.Element(msg)),
) -> element.Element(msg)

render creates a Lustre Element for a FocusTrap

Search Document