Hi!
How can I automatically set the focus to an input element upon loading a dash page?
Hi!
How can I automatically set the focus to an input element upon loading a dash page?
From the documentation dcc.Input:
autoFocus
(a value equal to: ‘autoFocus’, ‘autofocus’ or ‘AUTOFOCUS’ | boolean; optional): The element should be automatically focused after the page loaded. autoFocus is an HTML boolean attribute - it is enabled by a boolean or ‘autoFocus’. Alternative capitalizations autofocus
& AUTOFOCUS
are also acccepted.