11# AUTO GENERATED FILE - DO NOT EDIT
22
3- from dash .development .base_component import Component
3+ from dash .development .base_component import Component , _explicitize_args
44
55
66class Area (Component ):
@@ -46,7 +46,8 @@ class Area(Component):
4646- title (string; optional): Text to be displayed in a tooltip when hovering over the element.
4747
4848Available events: 'click'"""
49- def __init__ (self , children = None , ** kwargs ):
49+ @_explicitize_args
50+ def __init__ (self , children = None , id = None , n_clicks = None , n_clicks_timestamp = None , key = None , role = None , alt = None , coords = None , download = None , href = None , hrefLang = None , media = None , rel = None , shape = None , target = None , accessKey = None , className = None , contentEditable = None , contextMenu = None , dir = None , draggable = None , hidden = None , lang = None , spellCheck = None , style = None , tabIndex = None , title = None , fireEvent = None , dashEvents = None , ** kwargs ):
5051 self ._prop_names = ['children' , 'id' , 'n_clicks' , 'n_clicks_timestamp' , 'key' , 'role' , 'data-*' , 'aria-*' , 'alt' , 'coords' , 'download' , 'href' , 'hrefLang' , 'media' , 'rel' , 'shape' , 'target' , 'accessKey' , 'className' , 'contentEditable' , 'contextMenu' , 'dir' , 'draggable' , 'hidden' , 'lang' , 'spellCheck' , 'style' , 'tabIndex' , 'title' ]
5152 self ._type = 'Area'
5253 self ._namespace = 'dash_html_components'
@@ -55,12 +56,16 @@ def __init__(self, children=None, **kwargs):
5556 self .available_properties = ['children' , 'id' , 'n_clicks' , 'n_clicks_timestamp' , 'key' , 'role' , 'data-*' , 'aria-*' , 'alt' , 'coords' , 'download' , 'href' , 'hrefLang' , 'media' , 'rel' , 'shape' , 'target' , 'accessKey' , 'className' , 'contentEditable' , 'contextMenu' , 'dir' , 'draggable' , 'hidden' , 'lang' , 'spellCheck' , 'style' , 'tabIndex' , 'title' ]
5657 self .available_wildcard_properties = ['data-' , 'aria-' ]
5758
59+ _explicit_params = kwargs .pop ('_explicit_params' )
60+ _locals = locals ()
61+ _locals .update (kwargs ) # For wildcard attrs
62+ args = {k : _locals [k ] for k in _explicit_params if k != 'children' }
63+
5864 for k in []:
59- if k not in kwargs :
65+ if k not in args :
6066 raise TypeError (
6167 'Required argument `' + k + '` was not specified.' )
62-
63- super (Area , self ).__init__ (children = children , ** kwargs )
68+ super (Area , self ).__init__ (children = children , ** args )
6469
6570 def __repr__ (self ):
6671 if (any (getattr (self , c , None ) is not None
0 commit comments