Closed glsdown closed 2 years ago
While someone is in the neighborhood, here are a couple more minor docs updates:
In the Icons section, we should make it really clear which version is used. I've noticed that there are many changes between FontAwesome versions -- and the icons just don't appear if you use the wrong syntax or try to use an icon that is not in the version we link to.
In the first paragraph in the layout section it says:
The Bootstrap grid has twelve columns, and five responsive tiers (allowing you to specify different behaviours on different screen sizes, see below).
But there are six responsive tiers now with the new XXL tier
Doing a deep-dive to catch any more of these ready for a clear up. I haven't checked the props documentation though if anyone wants to take that beast on!
className
but in the props, this is marked as deprecated.~ - yep, waiting for Dash to follow suit. Examples with changes are on the class_name
branchDash Bootstrap Components is compatible with any Bootstrap v4 stylesheet of your choice
This is to give you the freedom to use any Bootstrap v4 stylesheet of your choice.
This is to give you the freedom to use any Bootstrap v4 stylesheet of your choice
You can download a stylesheet
link should be to https://getbootstrap.com/docs/5.0/getting-started/download/or even compile your own
link should be to https://getbootstrap.com/docs/5.0/customize/overview/please refer to the official Dash documentation for Python, R, or Julia.
- the links for R and Julia have been updated and should be https://dash.plotly.com/julia/ and https://dash.plotly.com/ris_open=True
?can optionally specify href to add a link, external_link to determine whether the link should be treated as a Dash style link or whether it should reload the page, and finally active to determine whether the item has the "active" style applied to indicate that it corresponds to the current location.
this is awkwardly phrased.Chooose
Create a Bootstrap 4 style block level button
for clarity perhaps should say Create a legacy Bootstrap 4 style...
Examples
heading - this is inconsistent with previous componentsIf you want to further customise the style you can use the toggle_style and toggleClassName arguments.
- there is no example given though.You can also use the header or divider arguments to create headers and dividers to help structure the menu. You can also include custom content such as text.
repetition of you can also.Examples
heading - this is inconsistent with previous componentsFormGroup
but this isn't used in the code snippetThe Form and FormGroup components can also be used with dash-core-components.
- FormGroup again is not used hereDocumentation and examples for input components in dash-bootstrap-components.
rather than describing what the component isExamples
heading - this is inconsistent with previous componentsSet inline=True to make the radio items or checklists fit next to each other on a line.
- has no title for this sectionand five responsive tiers
should be six (as above)stretch
- check react-bootstrap support~ Don't include this as it's complicated for the examples given - it will stretch the cols and not the coloured divs.evenly
- check react-bootstrap supportDocumentation and examples for how to use Bootstrap's navigation components with dash-bootstrap-components.
rather than describing what the component is.Examples
heading - this is inconsistent with previous componentsExamples
heading - this is inconsistent with previous componentsdbc.Select
component as this is a common requestWith the icons, I'm not sure adding a version number to the docs is any more discoverable than someone just doing
print(dbc.icons.BOOTSTRAP)
or similar? What do you think? Happy to be convinced otherwise but I might defer this change to a later PR.
@tcbegley I think that people wouldn't really know to do that though - I certainly wouldn't. Also, including in the docs makes it something people think about rather than spending ages on debugging why it isn't working.
I agree with @glsdown - print(dbc.icons.BOOTSTRAP)
is a neat trick that not everyone knows about. Then, once you do that, you need to know to go to the correct version of the FontAwesome (or Bootstrap icons) docs to check on the icon.
This is helpful to add to the dbc docs because if the the icons aren't showing up, people are likely to go to the icon section of the dbc docs to get some help.
Ok, you've convinced me, let's add it in 👍
Currently the v1 documentation states:
As v1 is using Bootstrap 5, this should be updated.