Skip to content

Disable Header on Homeview #43

@wamd-bozem

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!

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