-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Description
The following chunk makes sure that the scope value is always set:
// default text
scope.todayText = scope.todayText || 'Today';
scope.nowText = scope.nowText || 'Now';
scope.clearText = scope.clearText || 'Clear';
scope.closeText = scope.closeText || 'Close';
scope.dateText = scope.dateText || 'Date';
scope.timeText = scope.timeText || 'Time';Afterwards, the getText() function never fall back to the global config, i.e. scope[key + 'Text'] is always set:
scope.getText = function (key) {
return scope[key + 'Text'] || uiDatetimePickerConfig[key + 'Text'];
};Thoughts?
Metadata
Metadata
Assignees
Labels
No labels