-
Hide a section
hi,
I want a section initially hidden upon system start up. Where should I place this code?
showdocument("section:section1?action=hide")
I tried to place it in the ready delegate of the section itself and in the ready delegate of the page where the section is located but got the same behavior the section was not hidden upon the system start up.
Also, I tried to place the same code on the click delegate of the cancel button and the section was hidden upon clicking the cancel button.
thanks.
-
Hi abdulmojeb,
remember, the hide work only when you go on "preview desktop", non during the build of application.
Ciao
Fabio
-
hi phabio,
you mean there's no other way to hide a section upon system start up?
-
Try this.
In the ready event of you page:
lianja.get("section1").collapse()
but what I meant is:
the result, you see only when you make a preview of your app, while developments do not always work ..
-
hi,
Yes, I too know that it's only working if you make a preview of your app. But what I'm saying is that it should work when the app is deployed or installed, right?
But it didn't.
-
-
Hi,
I put your code
Code:
showdocument("section:section1?action=hide")
in page's ready delegate of lianja_mobiledemo, and deployed it.
After that, in App Center the Section1 is not showing at start. As expected.
In development views in Lianja App Builder it is showing.
These are only development (pre)views and they can not 100% replace real runtime environment.
If they could, then we would not need Page Center on development machine.
Josip