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

dcc.Link: Use href as children if no children are defined #772

@Marc-Andre-Rivet

Description

@Marc-Andre-Rivet

With HTML anchors, users are forced to provide a displayed content for the anchor, which can be as simple as the href itself..

<a href='myurl'>myurl</a>

1:1 correspondance in dcc.Link forces users to do the same thing:

dcc.Link(
  href='myurl',
  children=['myurl']
)

Defaulting to href for inner content if no children is defined provides a default behavior that will be acceptable in certain situations and will simplify usage.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions