Forums

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

Viewing 4 posts - 1 through 4 (of 4 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

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

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support