Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!

Forums

OverviewFelgo 2 Support (Qt 5) › Customize navigation items in a drawer

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #22416

    Tim

    Is there a way to customize the look of the navigation items in a drawer?  I’d like to have one of the items bold and have a section header that is not a navigation item.  For example:

    Food
    Gifts
    Rentals
    Shows
    Visitor Info (Section Header that is centered in the drawer and not left justified like the others)
    Admissions
    Hours
    Buy Tickets

    #22432

    Alex
    Felgo Team

    Hi,

    you’ll have to create an own item based on the AppDrawer fur such a level of customization. You can then set it as drawer of your navigation.

    Cheers,
    Alex

    #22495

    Tim

    Hi Alex,

    Sorry, I’m not following you.  Is there an example out there on this? Anything other than a NavigationItem throws an error.

    Thanks,

    Tim

    #22528

    Alex
    Felgo Team

    Hi Tim,

    sorry that was actual party wrong advice. The “drawer” property of the Navigation is actually only an alias to the internal drawer and cannot simply be replaced.

    The first part still applies though. You’ll have to create a custom AppDrawer component with your desired buttons and sections. To hide the default drawer, you can set the navigationMode of the Nagivation to: navigationModeNone

    You can get or set the current active item in the Navigation with this property: https://felgo.com/doc/felgo-navigation/#currentIndex-prop

    We’ll have a look if we can simplify this with our next update.

    Cheers,
    Alex

    #22706

    Tim

    I can’t get this to work properly.  I created a custom AppDrawer and added a Navigation component inside the AppDrawer component but it adds the Page from the NavigationStack to the drawer and not to the main page.  Is there a quick sample code that uses the AppDrawer and Navigation?

    Thanks,

    Tim

Viewing 5 posts - 1 through 5 (of 5 total)

RSS feed for this thread

You must be logged in to reply to this topic.