Mod Creation/Reusable Components with PetiteVue: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 261: Line 261:
     counter.inc();
     counter.inc();
   });
   });
}</nowiki>
== PetiteVue Quick Reference ==
This is not an exhaustive rundown of PetiteVue features, but these are likely the most common to be used and examples of each.
=== Text Bindings ({{ }}) ===
Render text within the HTML using the double-curly braces notation <code>{{ }}</code>.
'''Example'''
<nowiki><template id="binding-example">{{ text }}</template></nowiki>
<nowiki>function BindingExample(props) {
  $template: '#binding-example',
  text: props.text
}</nowiki>
}</nowiki>
89

edits