FabGL
ESP32 Display Controller and Graphics Library

◆ setupButton()

void setupButton ( int  index,
char const *  text,
char const *  subItems = nullptr,
int  subItemsHeight = 80 
)

Setups extended button or split-button.

Extended button texts are reset to empty values after every dialog.

Parameters
indexA value from 0 to 3. 0 = leftmost button ... 3 = rightmost button
textButton text
subItemsIf specified a Split Button is created. subItems contains a semicolon separated list of menu items
subItemsHeightDetermines split button sub items height in pixels

Definition at line 112 of file inputbox.cpp.