Closed trippo closed 2 years ago
Maybe option-key-label option-key-value as boolean prop
What do you think about this?
I think is better if the default (without passing option-label and option-value) work with an key value arrya. If you specify option-label and option-value work like now.
You talk about defaulting to key as value?
$array = [
1 => "name1" ,
2 => "name2" ,
];
the value is 1 and 2, the label is name1 and name2
Yes
It will break if pass an array of values, like $array = ['Active', 'Pending', 'Stuck', 'Done']
, the value will be 0,1,2... and not Active, Pending...
I believe a prop to define this would be good
You are the magician :) what did you think about option-key-label option-key-value as boolean prop?
I believe it can be a way, I am open to suggestions. I'm still thinking about it
@trippo it is now released
You can use option-key-label or option-key-value
Work like a charme
I would like to have the possibility to pass an key value array as options params on select like this
So without