What are the methods that dash html components supports?

Is there any list of what are the methods you can use? and examples?

I found myself: https://github.com/plotly/dash-html-components/tree/master/src/components

In general, you should try using python’s built-in help or dir to see which classes are available and which methods are available in each class.

>>> dir(dash_html_components)
A
 Abbr
 Acronym
 Address
 Applet
 Area
 Article
 Aside
 Audio
 B
 Base
 Basefont
 Bdi
 Bdo
 Big
 Blink
 Blockquote
 Br
 Button
 Canvas
 Caption
 Center
 Cite
 Code
 Col
 Colgroup
 Command
 Content
 Data
 Datalist
 Dd
 Del
 Details
 Dfn
 Dialog
 Dir
 Div
 Dl
 Dt
 Element
 Em
 Embed
 Fieldset
 Figcaption
 Figure
 Font
 Footer
 Form
 Frame
 Frameset
 H1
 H2
 H3
 H4
 H5
 H6
 Header
 Hgroup
 Hr
 I
 Iframe
 Img
 Ins
 Isindex
 Kbd
 Keygen
 Label
 Legend
 Li
 Link
 Listing
 Main
 MapEl
 Mark
 Marquee
 Menu
 Menuitem
 Meta
 Meter
 Multicol
 Nav
 Nextid
 Noembed
 Noscript
 ObjectEl
 Ol
 Optgroup
 Option
 Output
 P
 Param
 Plaintext
 Pre
 Progress
 Q
 Rp
 Rt
 Rtc
 Ruby
 S
 Samp
 Script
 Section
 Select
 Shadow
 Slot
 Small
 Source
 Spacer
 Span
 Strike
 Strong
 Sub
 Summary
 Sup
 Table
 Tbody
 Td
 Template
 Textarea
 Tfoot
 Th
 Thead
 Time
 Title
 Tr
 Track
 Tt
 U
 Ul
 Var
 Video
 Wbr
 Xmp

And, as mentioned in the docs, these are just 1-1 with the same HTML tags. See this community thread about this: CSS and HTML Stylesheet Resources - #2 by chriddyp

Would you mind opening an issue or submitting a PR that exposes all of these in the dash-docs? Repo here: GitHub - plotly/dash-docs: 📖 ISSUE TRACKER ONLY for The Official Dash Userguide & Documentation https://dash.plotly.com/, here’s the page on HTML components: https://github.com/plotly/dash-docs/blob/master/tutorial/html_components.py

1 Like