Skip to main content

ModalCtx

Type Alias ModalCtx 

Source
pub type ModalCtx<'a, S = ()> = Ctx<'a, S, ModalSubmitData>;
Expand description

Ctx of a Modal Handler: the submitted modal’s data

Aliased Type§

pub struct ModalCtx<'a, S = ()> { /* private fields */ }

Implementations§

Source§

impl<'a, S> ModalCtx<'a, S>

Source

pub fn value(&self, custom_id: &str) -> Option<&'a str>

The submitted text of the text input or radio group with custom_id

Source

pub fn values(&self, custom_id: &str) -> &'a [String]

The submitted values of the select, checkbox group, or file upload with custom_id

Source

pub fn checked(&self, custom_id: &str) -> Option<bool>

Whether the checkbox with custom_id was checked