Skip to content

Commit 4412ec5

Browse files
committed
Document new hooks constructor arg
1 parent a2c294f commit 4412ec5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dash/dash.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ class Dash:
341341
342342
:param add_log_handler: Automatically add a StreamHandler to the app logger
343343
if not added previously.
344+
345+
:param hooks: Extend Dash renderer functionality by passing a dictionary of
346+
javascript functions. To hook into the layout, use dict keys "layout_pre" and
347+
"layout_post". To hook into the callbacks, use keys "request_pre" and "request_post"
344348
"""
345349

346350
def __init__( # pylint: disable=too-many-statements

0 commit comments

Comments
 (0)