dash-html-components
Advanced tools
Changelog
[3.0.3] - 2025-04-14
setProps
path, leading to hashes being incorrectdash-hooks
to underscored dash_hooks
. Fix #3272dashChildrenUpdate = true
on the component, eg: Tabs.dashChildrenUpdate = true
Changelog
[3.0.2] - 2025-04-01
className_*
props in dcc.Upload
component.dashRenderType
to determine why the component layout was changed (internal
, callback
, parent
, clientsideApi
):
dashRenderType
defined as a prop, and the dashRenderType = true
must be set on the component, eg (Div.dashRenderType = true
)Changelog
[3.0.0] - 2025-03-17
-t
, --custom-typing-module
argument to dash-generate-components
CLI, default to dash_prop_typing
and can contains definitions in variables:
custom_imports: dict[ComponentName, list[str]]
import statement to be copied at the top of the component class definition.custom_props: dict[ComponentName, dict[PropName, function]]
for custom props. The function signature is: def generate_type(type_info, component_name, prop_name) -> str
PropType
generation for Typescript components allowing runtime prop validation when in debug mode.entry_points
with key dash-hooks
to their setup.py
for a module to be run when a Dash app is started.dash.hooks
methods to hook into Dash apps.
hooks.layout
takes the layout as argument and must return a layout, can be used to wrap or add to the layout of Dash apps.hooks.callback
defines a callback to be added to Dash apps.hooks.clientside_callback
defines a clientside callback to be added to Dash apps.hooks.setup
is called before a Dash app is started to get an instance of the app as first argument.hooks.error
to receive all callback errors.hooks.index
to change the Dash.index_string
.hooks.route
to add a Flask route to the Dash app.hooks.custom_data
to add custom data called from the callback route to the user callback.window.dash_component_api
for components developer as alternative to removed _dashprivate
props.
dash_component_api.useDashContext
, dash_component_api.DashContext
to access the redux store and loading mechanisms.
DashContext.componentPath
hold the path to the current component.DashContext.useLoading(options?)
selector to get a boolean if the component is loading.DashContext.isLoading
in case you need to use outside of a functional component.DashContext.useSelector
to create custom selectors for the connected redux store.DashContext.useStore
get the Dash app redux store.DashContext.useDispatch
to dispatch new actions on the Dash redux store.dash_component_api.getLayout(path)
to replace _dashprivate_layout
.stringifyId
in window.dash_component_api
. #3175window.dash_component_api.ExternalWrapper
to render Dash components that are not part of the layout tree. #3170 #3183loading_state
removed from components props.dash.development.component_loader
, components libraries now required to generate the components with dash-generate-components
.Dash.run_server
has been removed in favor of Dash.run
.dcc.LogoutButton
component.long
references to background
.dash_core_components
, dash_html_components
and dash_table
stub packages from dash
install requirements.defaultProps
on functional components now emits a deprecation warning.