-
-
Notifications
You must be signed in to change notification settings - Fork 143
dcc.Link: Use href
as children
if no children are defined
#772
Comments
Perhaps the other way as well, use |
It's possible to use anything as a dcc.Link child and the whole thing becomes clickable, so while href is a string and can be used safely as a child, the same can't be said about children.
|
sure, but if |
Yes. But it lends itself to a Side-note: |
Fair enough - and it could be confusing if you start with just |
With HTML anchors, users are forced to provide a displayed content for the anchor, which can be as simple as the href itself..
1:1 correspondance in dcc.Link forces users to do the same thing:
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.
The text was updated successfully, but these errors were encountered: