PeterStaev / NativeScript-Drop-Down

A NativeScript DropDown widget.
Apache License 2.0
105 stars 65 forks source link

Deselect Row #141

Closed DBhail closed 6 years ago

DBhail commented 6 years ago

It would be really good if one could deselect a selected row/item. Consider a list of items which are optional. The user selects a value but then changes his mind and actually doesn't want to select an item at all. He cant select the hint as this is disabled (!?) although it is still displayed within the list and there is no other functionality to reset the drop-down.

PeterStaev commented 6 years ago

@DBhail , you can add a special button to clear the selection and in the handler set the bound property to null. Or add a "not selected" item to the list. For now I do not think adding ability to unselect an item fits in design principles (even on the web the drop down does not have ability to unmark items)