MCPcopy
hub / github.com/plotly/dash / Input

Class Input

dash/dcc/Input.py:24–408  ·  view source on GitHub ↗

An Input component. Keyword arguments: - value (string | number; optional): The value of the input. - type (a value equal to: None, 'text', 'number', 'password', 'email', 'range', 'search', 'tel', 'url', 'hidden'; default HTMLInputTypes.text): The type of control to r

Source from the content-addressed store, hash-verified

22
23
24class Input(Component):
25 """An Input component.
26
27
28 Keyword arguments:
29
30 - value (string | number; optional):
31 The value of the input.
32
33 - type (a value equal to: None, 'text', 'number', 'password', 'email', 'range', 'search', 'tel', 'url', 'hidden'; default HTMLInputTypes.text):
34 The type of control to render.
35
36 - debounce (number | boolean; default False):
37 If True, changes to input will be sent back to the Dash server
38 only on enter or when losing focus. If it's False, it will send
39 the value back on every change. If a number, it will not send
40 anything back to the Dash server until the user has stopped typing
41 for that number of seconds.
42
43 - placeholder (string | number; optional):
44 A hint to the user of what can be entered in the control . The
45 placeholder text must not contain carriage returns or line-feeds.
46 Note: Do not use the placeholder attribute instead of a <label>
47 element, their purposes are different. The <label> attribute
48 describes the role of the form element (i.e. it indicates what
49 kind of information is expected), and the placeholder attribute is
50 a hint about the format that the content should take. There are
51 cases in which the placeholder attribute is never displayed to the
52 user, so the form must be understandable without it.
53
54 - n_submit (number; default 0):
55 Number of times the `Enter` key was pressed while the input had
56 focus.
57
58 - n_submit_timestamp (number; default -1):
59 Last time that `Enter` was pressed.
60
61 - inputMode (a value equal to: None, 'verbatim', 'latin', 'latin-name', 'latin-prose', 'full-width-latin', 'kana', 'katakana', 'numeric', 'tel', 'email', 'url'; default 'verbatim'):
62 Provides a hint to the browser as to the type of data that might
63 be entered by the user while editing the element or its contents.
64
65 - autoComplete (string; default 'off'):
66 This attribute indicates whether the value of the control can be
67 automatically completed by the browser.
68
69 - readOnly (boolean; optional):
70 This attribute indicates that the user cannot modify the value of
71 the control. The value of the attribute is irrelevant. If you need
72 read-write access to the input value, do not add the \"readonly\"
73 attribute. It is ignored if the value of the type attribute is
74 hidden, range, color, checkbox, radio, file, or a button type
75 (such as button or submit). readOnly is an HTML boolean attribute
76 - it is enabled by a boolean or 'readOnly'. Alternative
77 capitalizations `readonly` & `READONLY` are also acccepted.
78
79 - required (boolean; optional):
80 This attribute specifies that the user must fill in a value before
81 submitting a form. It cannot be used when the type attribute is

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…