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
For even more flexibility, the components could also export let the instance e.g. export let f7Sheet so component users can do <Sheet bind:f7Sheet={sheet}>.
Currently, we have to use
bind:this
along with.instance()
to access the internal Framework7 API of several Svelte components. Example from the docs:I think this boilerplate can be reduced in many cases. I suggest we have the components directly pass the instance as a
<slot>
prop:Then we can use the API like this:
This can apply to
<Actions>
,<Messagebar>
,<Panel>
,<PhotoBrowser>
,<Popup>
,<Searchbar>
,<Sheet>
, and many other interactive elements.The text was updated successfully, but these errors were encountered: