Skip to content

Disable Header on Homeview #43

Description

@wamd-bozem

I was wondering if there is a good solution to hide the header on certain views?

For Example: In my app I have a homescreen where I don't want a header. On all other views I would like to display the header with the back button as usual.

I came up with this somewhat ugly solution:

function pushView(view) {
    window.viewNavigator.pushView( view );

    if(view.title === 'Home')
    {
        jQuery('.viewNavigator_content').css('top', 0)
    }
    else
    {
       jQuery('.viewNavigator_content').css('top', '46px') 
    }    
}

This however requires to also check everytime I press the backbutton etc...

Is there a more elegant solution? Thanks in advance for your help!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions