You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried using the selectfield in the following way:
`
Nee
Ja
`
If I set klantH on true, the slider will still be set on false (Nee). My goal is to have 'Ja' (true) as default when opening the page.
I am able to achieve this by using ng-options: <select id="sliderH" name='sliderH' data-role="slider" ng-model="klantH" ng-options="kh.label for kh in khOpties"> </select>
with $scope.khOpties = [ { label : 'Nee', value : false }, { label : 'Ja', value : true }]
and $scope.klantH = $scope.khOpties[1];
It does set the right option in the slider, but I do lose a lot of mark-up. I don't see the labels and the color for the true-value isn't different from the false-value.
How can I set the slider on 'true' with the right rendering of slider?
The text was updated successfully, but these errors were encountered:
I've tried using the selectfield in the following way:
` Nee Ja `
If I set klantH on true, the slider will still be set on false (Nee). My goal is to have 'Ja' (true) as default when opening the page.
I am able to achieve this by using ng-options:
<select id="sliderH" name='sliderH' data-role="slider" ng-model="klantH" ng-options="kh.label for kh in khOpties"> </select>
with
$scope.khOpties = [ { label : 'Nee', value : false }, { label : 'Ja', value : true }]
and
$scope.klantH = $scope.khOpties[1];
It does set the right option in the slider, but I do lose a lot of mark-up. I don't see the labels and the color for the true-value isn't different from the false-value.
How can I set the slider on 'true' with the right rendering of slider?
The text was updated successfully, but these errors were encountered: