@@ -348,10 +348,10 @@ class Dash:
348
348
javascript functions. To hook into the layout, use dict keys "layout_pre" and
349
349
"layout_post". To hook into the callbacks, use keys "request_pre" and "request_post"
350
350
351
- :param routing_callback_states : When using Dash pages (use_pages=True), allows to
351
+ :param routing_callback_inputs : When using Dash pages (use_pages=True), allows to
352
352
add new States to the routing callback, to pass additional data to the layout
353
353
functions. The syntax for this parameter is a dict of State objects:
354
- `routing_callback_states ={"language": State ("language", "value")}`
354
+ `routing_callback_inputs ={"language": Input ("language", "value")}`
355
355
This allows things like (non-exhaustive list):
356
356
* A language dropdown that will be passed to every layout function,
357
357
for internationalisation
@@ -395,7 +395,7 @@ def __init__( # pylint: disable=too-many-statements
395
395
background_callback_manager = None ,
396
396
add_log_handler = True ,
397
397
hooks : Union [RendererHooks , None ] = None ,
398
- routing_callback_states : Optional [Dict [str , State ]] = None ,
398
+ routing_callback_inputs : Optional [Dict [str , Union [ Input , State ] ]] = None ,
399
399
** obsolete ,
400
400
):
401
401
_validate .check_obsolete (obsolete )
@@ -471,7 +471,7 @@ def __init__( # pylint: disable=too-many-statements
471
471
472
472
self .pages_folder = str (pages_folder )
473
473
self .use_pages = (pages_folder != "pages" ) if use_pages is None else use_pages
474
- self .routing_callback_states = routing_callback_states or {}
474
+ self .routing_callback_inputs = routing_callback_inputs or {}
475
475
476
476
# keep title as a class property for backwards compatibility
477
477
self .title = title
@@ -2095,7 +2095,7 @@ def router():
2095
2095
inputs = {
2096
2096
"pathname_" : Input (_ID_LOCATION , "pathname" ),
2097
2097
"search_" : Input (_ID_LOCATION , "search" ),
2098
- ** self .routing_callback_states ,
2098
+ ** self .routing_callback_inputs ,
2099
2099
},
2100
2100
prevent_initial_call = True ,
2101
2101
)
0 commit comments