Vue grid example.

60 views
Skip to first unread message

Ajruv Mnzur

unread,
Jun 22, 2020, 8:18:24 PM6/22/20
to py4web

Hi,

To understand py4web and vue, I am trying the following:

There is a grid example in the vuejs.org and I like to transfer it to py4web app (page index.html).

 

Grid example in vuejs.org

Py4web

the component template

<script type="text/x-template" id="grid-template">    

/components/demo-grid.html

One div

the component script

Vue.component("demo-grid", {

 …

/components/demo-grid.js

Props

Data

Computed

Filters

Methods

register_vue_component

Root element

 <div id = “demo”

        …

       <demo-grid> …

/templates/index.html

 

Bootstrap the demo

new Vue({

   el: ‘#demo’,

   data: …

 

 

?

<style>

 

?

 

Where is the location of ‘new Vue.data’ and <style> in py4web?

 

Regards,

 

Reply all
Reply to author
Forward
0 new messages