pub struct NumberInputElement {
pub is_decimal_allowed: bool,
pub action_id: Option<String>,
pub initial_value: Option<String>,
pub min_value: Option<String>,
pub max_value: Option<String>,
pub dispatch_action_config: Option<DispatchActionConfig>,
pub focus_on_load: Option<bool>,
pub placeholder: Option<TextObject>,
/* private fields */
}Expand description
Fields§
§is_decimal_allowed: bool§action_id: Option<String>§initial_value: Option<String>§min_value: Option<String>§max_value: Option<String>§dispatch_action_config: Option<DispatchActionConfig>§focus_on_load: Option<bool>§placeholder: Option<TextObject>Implementations§
Source§impl NumberInputElement
impl NumberInputElement
pub fn new(is_decimal_allowed: bool) -> Self
pub fn action_id(self, action_id: impl Into<String>) -> Self
pub fn initial_value(self, initial_value: impl Into<String>) -> Self
pub fn min_value(self, min_value: impl Into<String>) -> Self
pub fn max_value(self, max_value: impl Into<String>) -> Self
pub fn dispatch_action_config( self, dispatch_action_config: DispatchActionConfig, ) -> Self
pub fn focus_on_load(self, focus_on_load: bool) -> Self
pub fn placeholder(self, placeholder: impl Into<TextObject>) -> Self
Trait Implementations§
Source§impl Clone for NumberInputElement
impl Clone for NumberInputElement
Source§impl Debug for NumberInputElement
impl Debug for NumberInputElement
Source§impl<'de> Deserialize<'de> for NumberInputElement
impl<'de> Deserialize<'de> for NumberInputElement
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<NumberInputElement> for InputElement
impl From<NumberInputElement> for InputElement
Source§fn from(value: NumberInputElement) -> Self
fn from(value: NumberInputElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NumberInputElement
impl PartialEq for NumberInputElement
Source§impl Serialize for NumberInputElement
impl Serialize for NumberInputElement
impl StructuralPartialEq for NumberInputElement
Auto Trait Implementations§
impl Freeze for NumberInputElement
impl RefUnwindSafe for NumberInputElement
impl Send for NumberInputElement
impl Sync for NumberInputElement
impl Unpin for NumberInputElement
impl UnsafeUnpin for NumberInputElement
impl UnwindSafe for NumberInputElement
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more