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
Would it be possible for <is-land> to allow renaming that prefix?
A use-case for this is when other frameworks interpret on: as something else. For example (and in our case), Vue when specifying listeners using render functions interprets on followed by a capital letter (in this case :) as a listener:
h('is-land',{'on:visible' : ''})
Will render:
<is-land></is-land>
Happy to work on this and create a pull request. See main...cmiteam:is-land:main for what I've already done.
Thanks for creating <is-land>!
The text was updated successfully, but these errors were encountered:
I wasn't sure how <is-land> was intended to be initialized/configured, but what worked for me was to export an initIslands function that would allow users to set both the tag and prefix of <is-land> like so:
I've moved the colon : into Conditions.prefix in 68da03c. 👍
Feel free to pick, choose, or throw out the changes I've made at cmiteam/is-land. I'm also happy to open a pull request for what we have there (not much 😅).
The prefix for conditions
on:
is currently "hardcoded" in theConditions.getConditions
method:Would it be possible for
<is-land>
to allow renaming that prefix?A use-case for this is when other frameworks interpret
on:
as something else. For example (and in our case), Vue when specifying listeners using render functions interpretson
followed by a capital letter (in this case:
) as a listener:Will render:
Happy to work on this and create a pull request. See main...cmiteam:is-land:main for what I've already done.
Thanks for creating
<is-land>
!The text was updated successfully, but these errors were encountered: