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
The new VDOM feature of F7 was implemented using the snabbdom package. Snabbdom has a Style Module feature that could be used for very impressive animations for Lists. It would be very nice to have that feature in F7.
Describe the solution you'd like
Below are changes to include the Style Module.
An example on how to use the new sytleModule feature in a list:
PS - I tested this by putting the changes in the Framework7.js file. I am guessing as to where it should go in the src directory. The code works very nicely with Framework7.js.
But i made it to read style attribute, so if style attribute contains JSON ({ and }) then we parse and send it to style module, otherwise it renders like usual style attribute
The new VDOM feature of F7 was implemented using the snabbdom package. Snabbdom has a Style Module feature that could be used for very impressive animations for Lists. It would be very nice to have that feature in F7.
Describe the solution you'd like
Below are changes to include the Style Module.
An example on how to use the new sytleModule feature in a list:
Thanks,
Kris
PS - I tested this by putting the changes in the Framework7.js file. I am guessing as to where it should go in the src directory. The code works very nicely with Framework7.js.
F7/src/core/modules/component/vdom.js
Around line 183 there is this:
After the "if" statement, add this:
F7/src/core/modules/component/patch.js -- add sytleModule
Create a new file: style-component.js with the following:
The text was updated successfully, but these errors were encountered: