Skip to content

Get the value of a MenuItem when callback function is executed #14

Locked Answered by forntoh
agreen72 asked this question in Q&A
Discussion options

You must be logged in to vote

Beginning in version 2.0.0, the value of the ItemInput, the position of ItemList or the toggle state is passed directly to the callback function,

//... stuff
//
ItemInput("Name","", saveName)
//
//... more stuff
//
void saveName(String name) {
    // 🤗 do stuff with name
}

Replies: 3 comments 10 replies

Comment options

You must be logged in to vote
2 replies
@forntoh
Comment options

@forntoh
Comment options

This comment has been hidden.

@forntoh

This comment has been hidden.

Comment options

You must be logged in to vote
7 replies
@Collin7
Comment options

@forntoh
Comment options

@Collin7
Comment options

@Collin7
Comment options

@forntoh
Comment options

Answer selected by forntoh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants