Wrap Link.__call__
See original GitHub issueCurrently users directly override Link.__call__
.
I propose letting users override, say, Link.call
instead, and call it from Link.__call__
. It’s just like how Function.__call__
works.
This will introduce several benefits (At least I can think of):
- Link hooks
- Links will be able to be represented hierarchically in graph visualization. (See #2215)
Some candidate method names: call
, __call_link__
, define
, define_link
, any other?
Note: This will not break backward compatibility, as existing code (overriding Link.__call__
) will just work, but with new features (e.g. link hooks) disabled.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:13 (11 by maintainers)
Top Results From Across the Web
html - Word wrap a link so it doesn't overflow its parent div width
The link text can be very long and it overflows the div when it's length does exceed the div width. Is there a...
Read more >4 Steps to Add a Clickable Telephone Link in HTML
Click Edit as HTML. How to Add a HTML Telephone Link to Your footer in WordPress: Click edit as. Wrap the phone number...
Read more >Wrap Long Links with CSS - David Walsh Blog
Learn how to wrap long links so that they don't escape the parent width!
Read more >Handling Long Words and URLs (Forcing Breaks ... - CSS-Tricks
Here's the scoop: overflow-wrap: break-word; makes sure the long string will wrap and not bust out of the container. You might as ...
Read more >How to stop phone number links wrapping using CSS - Texelate
It is better if phone links do not wrap onto the next line. Thankfully, this is easy to prevent using some simple CSS....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If there’s no objection to the above comment of @niboshi, I’m going to start writing this feature with the first option in the comment and send a PR soon.
@mitmul Got it!