Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

How to add a button with a link? #16

@olgabot

Description

@olgabot

Forgive the naive question, I am extremely new to web programming. We'd like to add a feedback button, but this code:

                html.Button('Submit feedback!', className='three columns',
                            href='https://github.com/czbiohub/singlecell-dash/issues/new'),

Produces the error that href is not a valid property:

Traceback (most recent call last):
  File "../singlecell-dash/app.py", line 681, in <module>
    cli()
  File "/Users/olgabot/anaconda3/envs/maca-dash/lib/python3.6/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/Users/olgabot/anaconda3/envs/maca-dash/lib/python3.6/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/Users/olgabot/anaconda3/envs/maca-dash/lib/python3.6/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/olgabot/anaconda3/envs/maca-dash/lib/python3.6/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "../singlecell-dash/app.py", line 360, in cli
    href='https://github.com/czbiohub/singlecell-dash/issues/new'),
  File "<string>", line 45, in __init__
  File "/Users/olgabot/anaconda3/envs/maca-dash/lib/python3.6/site-packages/dash/development/base_component.py", line 23, in __init__
    ', '.join(self._prop_names)
Exception: Unexpected keyword argument `href`
Allowed arguments: children, autoFocus, disabled, form, formAction, name, type, value, accessKey, className, contentEditable, contextMenu, dir, draggable, hidden, lang, spellCheck, style, tabIndex, title, id
make: *** [dev] Error 1

What's the correct way to add a button with a link?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions