Here the date/time picker is given the ability to dynamically hide the time
picking component when show-time-picker is in effect. This allows an
interface to use the time picker based on ephemeral state information and to
hide it when not useful.
Additionally, the progress dialog now takes an optional label property that
can be passed to both open() and update(), so that textual information can
be provided along with the numeric and visual progress data.
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
<div>
<span>
<uib-timepicker
- ng-show="showTimePicker"
+ ng-if="showTimePicker"
+ ng-hide="hideTimePicker"
ng-model="ngModel"
ng-disabled="ngDisabled"
ng-required="ngRequired"
<div class="modal-body">
<div class="row eg-modal-progress">
+ <div ng-if="data.label">
+ <div class="col-md-12">
+ <h2>{{data.label}}</h2>
+ </div>
+ </div>
+
<div ng-if="data.hasvalue() && data.hasmax()">
<!-- determinate progress bar. shows max/value progress -->
<div class="col-md-10">
egProgressData.max = args.max;
if (args.value != undefined)
egProgressData.value = args.value;
+ if (args.label != undefined)
+ egProgressData.label = args.label;
}
// Increment the current value. If no amount is specified,
ngDisabled : '=',
ngRequired : '=',
hideDatePicker : '=',
+ hideTimePicker : '=?',
dateFormat : '=?',
outOfRange : '=?',
focusMe : '=?'