Skip to content

Add back callback #79

@niesteszeck

Description

@niesteszeck

Is there a way to attach a callback to the menusystem.back() method?

I want to create a cancel callback for NumericMenuItems. For example I'm enabling blink on a lcd when entering a numeric menu item, so on the select callback I stop blinking (and other stuff), but when I call ms.back() from other part of the program, the select callback doesn't get called and the lcd keeps the blinking, so if there where a back callback I can turn off blinking. Also I would like to make it more like a cancel, so in there I can reset the menu and cancel the edition NumericMenuItem value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions