Monaca Onsen UI Discord Chat Github Repo

triggering expandable list content myself



  • I’d like to have an expandable list item, with the “closed” list item having two quiet buttons, one of which opens the expandable item and the other does something else.

    I know you can programatically control the open/close using showExpansion and hideExpansion

    Right now, any tap on the entire list item triggers the expansion, which doesn’t allow me to use the other button.

    Can anyone suggest how I could remove the event handler for the expandable list and control it myself, or some other option of achieving this?



  • @rogerkaplan Figured it out… call event.stopPropagation() in the event handler for the button. Duh.