Results 1 to 7 of 7

Thread: Hide a section

Hybrid View

  1. #1

    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.

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    Hi abdulmojeb,

    remember, the hide work only when you go on "preview desktop", non during the build of application.

    Ciao
    Fabio

  3. #3
    hi phabio,

    you mean there's no other way to hide a section upon system start up?

  4. #4
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    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 ..

  5. #5
    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.

  6. #6
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    In my app.. work..

  7. #7
    Lianja MVP
    Join Date
    Dec 2012
    Location
    Croatia, Zagreb
    Posts
    1,135
    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
    Last edited by josipradnik; 2016-04-12 at 06:08.

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us