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!

IconButtonBarItem

Displays a clickable Icon inside a NavigationBar slot. More...

Import Statement: import Felgo 3.0
Inherits:

ButtonBarItem

Properties

Detailed Description

This item can be used to display a static Icon inside the left or right NavigationBar slot. It also acts as a button and can be clicked by the user.

Example Usage

To have an icon in the right slot of a NavigationBar, which can toggle some other item, use this code:

 NavigationBar {
   rightBarItem: IconButtonBarItem {
     icon: widgetsPage.activated ? IconType.toggleon : IconType.toggleoff
     onClicked: widgetsPage.activated = !widgetsPage.activated
   }
 }

Property Documentation

color : color

Color of the icon. Default is Theme::navigationBar.itemColor.


icon : IconType

Sets the icon to be shown inside the item. Use one of the IconType constants.


iconSize : real

Size (height) for the icon to be shown, in pixels.