pub fn Textarea(props: TextareaProps) -> impl IntoViewExpand description
§Optional Props
- class:
impl Into<MaybeProp<String>> - id:
impl Into<MaybeProp<String>> - name:
impl Into<MaybeProp<String>>- A string specifying a name for the input control. This name is submitted along with the control’s value when the form data is submitted.
- rules:
impl Into<Vec<TextareaRule>>- The rules to validate Field.
- value:
impl Into<Model<String>>- The value of the Textarea.
- allow_value: [
impl Into<BoxOneCallback<String, bool>>](BoxOneCallback<String, bool>)- Check the incoming value, if it returns false, input will not be accepted.
- placeholder:
impl Into<MaybeProp<String>>- Placeholder text for the input.
- on_focus:
impl Into<BoxOneCallback<ev::FocusEvent>>- Callback triggered when the input is focussed on.
- on_blur:
impl Into<BoxOneCallback<ev::FocusEvent>>- Callback triggered when the input is blurred.
- disabled:
impl Into<Signal<bool>>- Whether the input is disabled.
- resize:
impl Into<Signal<TextareaResize>>- Which direction the Textarea is allowed to be resized.
- size:
impl Into<Signal<TextareaSize>>- Size of the Textarea.
- comp_ref:
ComponentRef<TextareaRef>