Results 1 to 2 of 2

Thread: Picker with single-touch selection ( ST 2.4.1 )

  1. #1
    Sencha User
    Join Date
    Aug 2014
    Posts
    8

    Default Picker with single-touch selection ( ST 2.4.1 )

    I'd like to hide the titlebar (and the Cancel and Done buttons) in the Picker widget. The user should be able to freely scroll the list, but as soon as they tap on an item, the Picker should hide and the change event should be dispatched. But in Sencha Touch 2.4.1, the Picker widget is designed to only fire its change event after the user presses the Done button in the titlebar of the picker widget.

    I can't find a way to catch selection change in the Picker as soon as the user taps the item, using any of these events:
    • change: doesn't fire until after the user selects an item and presses the Done button (which will be hidden anyway)
    • activeitemchange: doesn't fire when items are selected
    • activate: doesn't fire when items are selected
    I've create a Fiddle here: https://fiddle.sencha.com/#fiddle/hvf

    I also tried (in the Fiddle) to listen for events on the slot itself (activeitemchange, activate, etc), but those events don't fire either.

    I realize it might sound like I could just use a selectfield, however the screen this widget needs to pop up from doesn't contain a form. Instead, we need to be able to programatically pop-up this picker widget in response to other UI events.

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    It seems you have two users, please do not post the same question multiple times: http://www.sencha.com/forum/showthre...l-Done-buttons
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •