MCPcopy Index your code
hub / github.com/plotly/dash / Div

Class Div

dash/html/Div.py:24–179  ·  view source on GitHub ↗

A Div component. Div is a wrapper for the HTML5 element. For detailed attribute info see: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div Keyword arguments: - children (a list of or a singular dash component, string or number; optional): The children

Source from the content-addressed store, hash-verified

22
23
24class Div(Component):
25 """A Div component.
26 Div is a wrapper for the <div> HTML5 element.
27 For detailed attribute info see:
28 https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div
29
30 Keyword arguments:
31
32 - children (a list of or a singular dash component, string or number; optional):
33 The children of this component.
34
35 - id (string; optional):
36 The ID of this component, used to identify dash components in
37 callbacks. The ID needs to be unique across all of the components
38 in an app.
39
40 - accessKey (string; optional):
41 Keyboard shortcut to activate or add focus to the element.
42
43 - aria-* (string; optional):
44 A wildcard aria attribute.
45
46 - className (string; optional):
47 Often used with CSS to style elements with common properties.
48
49 - contentEditable (string; optional):
50 Indicates whether the element&#x27;s content is editable.
51
52 - data-* (string; optional):
53 A wildcard data attribute.
54
55 - dir (string; optional):
56 Defines the text direction. Allowed values are ltr (Left-To-Right)
57 or rtl (Right-To-Left).
58
59 - disable_n_clicks (boolean; optional):
60 When True, this will disable the n_clicks prop. Use this to
61 remove event listeners that may interfere with screen readers.
62
63 - draggable (string; optional):
64 Defines whether the element can be dragged.
65
66 - hidden (a value equal to: 'hidden', 'HIDDEN' | boolean; optional):
67 Prevents rendering of given element, while keeping child elements,
68 e.g. script elements, active.
69
70 - key (string; optional):
71 A unique identifier for the component, used to improve performance
72 by React.js while rendering components See
73 https://reactjs.org/docs/lists-and-keys.html for more info.
74
75 - lang (string; optional):
76 Defines the language used in the element.
77
78 - n_clicks (number; default 0):
79 An integer that represents the number of times that this element
80 has been clicked on.
81

Calls

no outgoing calls