B4J Question [BANanoVuetifyAD3] New Project - Where did the title go? [SOLVED]

Star-Dust

Expert
Licensed User
Longtime User
I have opened a new project.


1635106546390.png


Without touching the code, I start the compilation and open the page .... Oops ... the title is missing ..

Why does apptitle appear to me?
It seems that the assignment of the value to the variable does not work


1635106462024.png


Chrome debug said:
app.js:43 ReferenceError: page is not defined
at a.eval (eval at Ya (app.js:43), <anonymous>:3:324)
at a.e._render (app.js:43)
at a.r (app.js:43)
at fn.get (app.js:43)
at new fn (app.js:43)
at app.js:43
at a.wn.$mount (app.js:43)
at a.wn.$mount (app.js:43)
at init (app.js:43)
at n (app.js:43)
 
Last edited:

Star-Dust

Expert
Licensed User
Longtime User
I moved vuetify.SetData('apptitle', Main.AppTitle) inside the onmounted sub of pgIndex and it works

But it is not the original source.

Has something changed? Do you need to change the template?

B4X:
Sub onmounted
    'clear the drawer
    drwlist.ClearOnApp(vuetify)
    drwlist.AddHeader("Enhanced Design System")
    drwlist.AddItem("", "home", "mdi-home", "green", "Home", "/")
    drwlist.AddItem("", "one", "mdi-access-point-check", "orange", "One", "/one")
    drwlist.AddItem("", "two", "mdi-silverware", "brown", "Two", "/two")
    'refresh the drawer
    drwlist.RefreshOnApp(vuetify)
    vuetify.SetData("apptitle", Main.AppTitle)
End Sub
 
Upvote 0

Mashiane

Expert
Licensed User
Longtime User
The template just needs to be updated to be fully compatible with BVAD3 6.05, its still old and as you might have noticed has BindState calls, which are no longer necessary.
The templates have been updated. These include a blank project, a 3 pager template with a Leaflet map and also additional class modules for a page and a CRUD page.

More is coming.
 
Upvote 0
Top