# AUTO GENERATED FILE - DO NOT EDIT

from dash.development.base_component import Component, _explicitize_args



schema = {'lang': {'nullable': True}, 'n_clicks_timestamp': {'nullable': True}, 'style': {'nullable': True}, 'hidden': {'nullable': True}, 'contentEditable': {'nullable': True}, 'fireEvent': {'nullable': True}, 'contextMenu': {'nullable': True}, 'accessKey': {'nullable': True}, 'title': {'nullable': True}, 'dashEvents': {'nullable': True}, 'children': {'nullable': True}, 'className': {'nullable': True}, 'role': {'nullable': True}, 'draggable': {'nullable': True}, 'key': {'nullable': True}, 'spellCheck': {'nullable': True}, 'n_clicks': {'nullable': True}, 'id': {'nullable': True}, 'dir': {'nullable': True}, 'tabIndex': {'nullable': True}}

class Ruby(Component):
    """A Ruby component.


Keyword arguments:
- children (optional): The children of this component
- id (optional): The ID of this component, used to identify dash components
in callbacks. The ID needs to be unique across all of the
components in an app.
- n_clicks (optional): An integer that represents the number of times
that this element has been clicked on.
- n_clicks_timestamp (optional): An integer that represents the time (in ms since 1970)
at which n_clicks changed. This can be used to tell
which button was changed most recently.
- key (optional): A unique identifier for the component, used to improve
performance by React.js while rendering components
See https://reactjs.org/docs/lists-and-keys.html for more info
- role (optional): The ARIA role attribute
- data-* (optional): A wildcard data attribute
- aria-* (optional): A wildcard aria attribute
- accessKey (optional): Defines a keyboard shortcut to activate or add focus to the element.
- className (optional): Often used with CSS to style elements with common properties.
- contentEditable (optional): Indicates whether the element's content is editable.
- contextMenu (optional): Defines the ID of a <menu> element which will serve as the element's context menu.
- dir (optional): Defines the text direction. Allowed values are ltr (Left-To-Right) or rtl (Right-To-Left)
- draggable (optional): Defines whether the element can be dragged.
- hidden (optional): Prevents rendering of given element, while keeping child elements, e.g. script elements, active.
- lang (optional): Defines the language used in the element.
- spellCheck (optional): Indicates whether spell checking is allowed for the element.
- style (optional): Defines CSS styles which will override styles previously set.
- tabIndex (optional): Overrides the browser's default tab order and follows the one specified instead.
- title (optional): Text to be displayed in a tooltip when hovering over the element.
- fireEvent (optional): A callback for firing events to dash.

Available events: """
    _schema = schema
    @_explicitize_args
    def __init__(self, children=None, id=Component.UNDEFINED, n_clicks=Component.UNDEFINED, n_clicks_timestamp=Component.UNDEFINED, key=Component.UNDEFINED, role=Component.UNDEFINED, accessKey=Component.UNDEFINED, className=Component.UNDEFINED, contentEditable=Component.UNDEFINED, contextMenu=Component.UNDEFINED, dir=Component.UNDEFINED, draggable=Component.UNDEFINED, hidden=Component.UNDEFINED, lang=Component.UNDEFINED, spellCheck=Component.UNDEFINED, style=Component.UNDEFINED, tabIndex=Component.UNDEFINED, title=Component.UNDEFINED, **kwargs):
        self._prop_names = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title', 'fireEvent']
        self._type = 'Ruby'
        self._namespace = 'dash_html_components'
        self._valid_wildcard_attributes =            ['data-', 'aria-']
        self.available_events = []
        self.available_properties = ['children', 'id', 'n_clicks', 'n_clicks_timestamp', 'key', 'role', 'data-*', 'aria-*', 'accessKey', 'className', 'contentEditable', 'contextMenu', 'dir', 'draggable', 'hidden', 'lang', 'spellCheck', 'style', 'tabIndex', 'title', 'fireEvent']
        self.available_wildcard_properties =            ['data-', 'aria-']

        _explicit_args = kwargs.pop('_explicit_args')
        _locals = locals()
        _locals.update(kwargs)  # For wildcard attrs
        args = {k: _locals[k] for k in _explicit_args if k != 'children'}

        for k in []:
            if k not in args:
                raise TypeError(
                    'Required argument `' + k + '` was not specified.')
        super(Ruby, self).__init__(children=children, **args)

    def __repr__(self):
        if(any(getattr(self, c, None) is not None
               for c in self._prop_names
               if c is not self._prop_names[0])
           or any(getattr(self, c, None) is not None
                  for c in self.__dict__.keys()
                  if any(c.startswith(wc_attr)
                  for wc_attr in self._valid_wildcard_attributes))):
            props_string = ', '.join([c+'='+repr(getattr(self, c, None))
                                      for c in self._prop_names
                                      if getattr(self, c, None) is not None])
            wilds_string = ', '.join([c+'='+repr(getattr(self, c, None))
                                      for c in self.__dict__.keys()
                                      if any([c.startswith(wc_attr)
                                      for wc_attr in
                                      self._valid_wildcard_attributes])])
            return ('Ruby(' + props_string +
                   (', ' + wilds_string if wilds_string != '' else '') + ')')
        else:
            return (
                'Ruby(' +
                repr(getattr(self, self._prop_names[0], None)) + ')')
