ionic-selectable icon indicating copy to clipboard operation
ionic-selectable copied to clipboard

[Feature Request] Add itemDisabledFiled option to avoid attaching entire disabledItems list

Open MaximS opened this issue 4 years ago • 3 comments

Add itemDisabledFiled option to avoid attaching entire disabledItems list. This way an item in addition to itemValueField and itemTextField would provide its disabled status.

MaximS avatar Feb 22 '21 18:02 MaximS

Could you elaborate a bit on the issue, particularly, why [disabledItems] array is not working in your case?

eakoriakin avatar Feb 23 '21 03:02 eakoriakin

Nothing wrong with [disabledItems]. It's just more convenient in my case to have all the data in one collection instead of two. And I suppose that in many cases disabled status is a property of the item itself rather than been sourced form some other place. In any case [disabledItems] should remain in place because of diferent use cases.

MaximS avatar Feb 23 '21 07:02 MaximS

Okay, I see now, yes it make sense to have [itemIsDisabledField] property in case the input collection of items has it. I don't have time to work on it myself currently, but will keep it in the log for future development.

eakoriakin avatar Feb 23 '21 07:02 eakoriakin