Created
October 3, 2021 19:51
-
-
Save ftes/84e01c6b4b1258dedafd4556cd2b9f88 to your computer and use it in GitHub Desktop.
Drag 'n drop on the PETAL(S) stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if @dragged.target == :live_view do | |
"hook.pushEvent('#{@dragged.name}', {from, to});" | |
else | |
"hook.pushEventTo('#{@dragged.target}', '#{@dragged.name}', {from, to});" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment