You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on a custom linkView type using the new linkTools API.
I thought of different solutions how to handle the additional buttons for longer links, but I'm not sure if they are possible and what would be considered best practice:
hide and show a single linkTool using linkTool.hide/.show() depending on the link's length inside an UPDATE cycle
add or remove a single linkTool, e.g. Remove button, after setting the toolsView for the link by manipulation the toolsView's tools array
for each mouseover, create a completely new toolsView containing new (?) tools depending on how long the link is currently (this is how it was done in the link demo)
Also another related question: Is it also possible to change some options, e.g. the distance of a Button, after tool creation s.th. it would be possible to move them depending on the link's length?
The text was updated successfully, but these errors were encountered:
The used LinkView needs then to have the corresponding .isShortLink() defined and using the options distanceLong, distanceShort and secondary at button creation enables showing additional buttons and repositioning them for long links.
I want to achieve a similar result to what has been possible before by setting
on a custom linkView type using the new linkTools API.
I thought of different solutions how to handle the additional buttons for longer links, but I'm not sure if they are possible and what would be considered best practice:
linkTool.hide/.show()
depending on the link's length inside anUPDATE
cycleAlso another related question: Is it also possible to change some options, e.g. the
distance
of aButton
, after tool creation s.th. it would be possible to move them depending on the link's length?The text was updated successfully, but these errors were encountered: