Struct ui::Modal
zaun_client::ui::Modal · Struct
pub struct Modal { … }A modal: up to five labelled inputs and texts.
Fields
Section titled “Fields”custom_id: String
Section titled “custom_id: String”Its custom_id.
title: String
Section titled “title: String”Its title.
components: Vec<Component>
Section titled “components: Vec<Component>”Its labels and texts.
Methods
Section titled “Methods”pub fn new<impl Into<String>, impl Into<String>>(custom_id: impl Into<String>, title: impl Into<String>) -> SelfAn empty modal.
pub fn field<impl Into<String>>(self, label: impl Into<String>, input: Component) -> SelfAdds any input (radio, checkbox, file upload, …) under label.
pub fn input<impl Into<String>>(self, label: impl Into<String>, input: TextInput) -> SelfAdds a text field under label.
select
Section titled “select”pub fn select<impl Into<String>>(self, label: impl Into<String>, select: Select) -> SelfAdds a select under label.
pub fn text<impl Into<String>>(self, content: impl Into<String>) -> SelfAdds markdown text.
Trait implementations
Section titled “Trait implementations”Clone, Debug