Raxol.Components.Modal (Raxol v0.3.0)
View SourceA modal component for displaying overlay dialogs like alerts, prompts, confirmations, and forms.
Summary
Functions
Creates props for an alert modal.
Creates props for a confirmation modal.
Creates props for a form modal.
Callback implementation for Raxol.UI.Components.Base.Component.mount/1
.
Creates props for a prompt modal.
Callback implementation for Raxol.UI.Components.Base.Component.unmount/1
.
Functions
Creates props for an alert modal.
Creates props for a confirmation modal.
Creates props for a form modal.
fields
should be a list of maps, each defining a form field:
%{id: :atom, type: :text_input | :checkbox | :dropdown, label: "string", value: initial_value, props: keyword_list, options: list, validate: regex | function}
(options only for dropdown)
Callback implementation for Raxol.UI.Components.Base.Component.mount/1
.
Creates props for a prompt modal.
Callback implementation for Raxol.UI.Components.Base.Component.unmount/1
.