Textarea is a wrapper for the <textarea> HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea
htmlTextarea(children=NULL, id=NULL, n_clicks=NULL,
n_clicks_timestamp=NULL, key=NULL, role=NULL,
autoComplete=NULL, autoFocus=NULL, cols=NULL, disabled=NULL,
form=NULL, inputMode=NULL, maxLength=NULL, minLength=NULL,
name=NULL, placeholder=NULL, readOnly=NULL, required=NULL,
rows=NULL, wrap=NULL, accessKey=NULL, className=NULL,
contentEditable=NULL, contextMenu=NULL, dir=NULL,
draggable=NULL, hidden=NULL, lang=NULL, spellCheck=NULL,
style=NULL, tabIndex=NULL, title=NULL, loading_state=NULL,
...)
A list of or a singular dash component, string or number. The children of this component
Character. The ID of this component, used to identify dash components in callbacks. The ID needs to be unique across all of the components in an app.
Numeric. An integer that represents the number of times that this element has been clicked on.
Numeric. An integer that represents the time (in ms since 1970) at which n_clicks changed. This can be used to tell which button was changed most recently.
Character. A unique identifier for the component, used to improve performance by React.js while rendering components See https://reactjs.org/docs/lists-and-keys.html for more info
Character. The ARIA role attribute
Character. Indicates whether controls in this form can by default have their values automatically completed by the browser.
A value equal to: 'autofocus', 'autofocus', 'autofocus' | logical. The element should be automatically focused after the page loaded.
Character | numeric. Defines the number of columns in a textarea.
A value equal to: 'disabled', 'disabled' | logical. Indicates whether the user can interact with the element.
Character. Indicates the form that is the owner of the element.
Character. Provides a hint as to the type of data that might be entered by the user while editing the element or its contents. The attribute can be used with form controls (such as the value of textarea elements), or in elements in an editing host (e.g., using contenteditable attribute).
Character | numeric. Defines the maximum number of characters allowed in the element.
Character | numeric. Defines the minimum number of characters allowed in the element.
Character. Name of the element. For example used by the server to identify the fields in form submits.
Character. Provides a hint to the user of what can be entered in the field.
Character. Indicates whether the element can be edited.
A value equal to: 'required', 'required' | logical. Indicates whether this element is required to fill out or not.
Character | numeric. Defines the number of rows in a text area.
Character. Indicates whether the text should be wrapped.
Character. Keyboard shortcut to activate or add focus to the element.
Character. Often used with CSS to style elements with common properties.
Character. Indicates whether the element's content is editable.
Character. Defines the ID of a <menu> element which will serve as the element's context menu.
Character. Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
Character. Defines whether the element can be dragged.
A value equal to: 'hidden', 'hidden' | logical. Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
Character. Defines the language used in the element.
Character. Indicates whether spell checking is allowed for the element.
Named list. Defines CSS styles which will override styles previously set.
Character. Overrides the browser's default tab order and follows the one specified instead.
Character. Text to be displayed in a tooltip when hovering over the element.
Lists containing elements 'is_loading', 'prop_name', 'component_name'. those elements have the following types: - is_loading (logical; optional): determines if the component is loading or not - prop_name (character; optional): holds which property is loading - component_name (character; optional): holds the name of the component that is loading. Object that holds the loading state object coming from dash-renderer
wildcards allowed have the form: `'data-*', 'aria-*'`
named list of JSON elements corresponding to React.js properties and their values
# NOT RUN {
if (interactive()) {
library(dash)
app <- Dash$new()
app$layout(
htmlDiv(list(
htmlTextarea(
rows = 4, cols = 50,
children = "A text area allows users to input text"
)
)
)
)
app$run_server()
}
# }
Run the code above in your browser using DataLab