, , ( "SelectText..." ), , . optionLabel. optionLabelTemplate, , , .
, :
$scope.DropDownOptionsTest = {
dataSource: TestData,
optionLabelTemplate: '<span>Select Text...</span>',
dataTextField: "value",
dataValueField: "id"
};
:
$scope.DropDownOptionsTest = {
dataSource: TestData,
optionLabel: 'Select Text...'
optionLabelTemplate: '<span>Select Text...</span>',
dataTextField: "value",
dataValueField: "id"
};
, Label , optionLabelTemplate , , .
, Label optionLabelTemplate - ( - , - ):
$scope.DropDownOptionsTest = {
dataSource: $scope.testData,
optionLabel: 'Select one...',
optionLabelTemplate: function(optionLabel){return '<span>' + optionLabel + '</span>'},
dataTextField: "value",
dataValueField: "id"
};