must be doing something wrong trying to implement a grid on the myfeed app:
controllers.py
from py4web.utils.publisher import Publisher, ALLOW_ALL_POLICY
publisher = Publisher(db, policy=ALLOW_ALL_POLICY)
@authenticated()
def feeds():
return dict(grid=publisher.grid(db.feed_item))
feeds.html
[[extend "layout.html"]]
<h1 class="title">All the Feeds</h1>
[[=grid]]
plus copied mtable.html and mtable.js from _dashboard/static/components/ into myfeed/static/components/
The page shows, but not the grid, even the code is inserted:
<section class="section">
<!-- beginning of HTML inserted by extending template -->
<h1 class="title">All the Feeds</h1>
<div id="vue10a50c9f"><mtable url="/myfeed/service/5d7a065b-0590-4d78-a76d-8f79979b0f16/feed_item" filter="" order="" :editable="true" :deletable="true" :create="true" :render="{}"></mtable><SCRIPT src="/myfeed/static/js/axios.min.js"></SCRIPT><SCRIPT src="/myfeed/static/js/vue.min.js"></SCRIPT><SCRIPT src="/myfeed/static/js/utils.js"></SCRIPT><SCRIPT src="/myfeed/static/components/mtable.js"></SCRIPT><SCRIPT>var app=
utils.app("vue10a50c9f"); app.start()</SCRIPT></div>
<!-- end of HTML inserted by extending template -->
</section>
Thanks,
Jorge