[feat] InputSelect
and InputSelectize
's .expect_choices()
should handle values, labels, and groups
#1688
Labels
InputSelect
and InputSelectize
's .expect_choices()
should handle values, labels, and groups
#1688
The root of the problem is that we can not test which values belong in which labels. Only that their order (and count) is valid.
Proposal:
It should support:
Internally, if a value array is supplied, then it is auto upgraded to a
{value: label}
dictionary. Ex:is auto upgraded to: (which also asserts that there are no groups)
And
to:
Groups:
However, this will require the deprecation of
.expect_choice_labels()
and.expect_choice_groups()
.The text was updated successfully, but these errors were encountered: