如何将输入文本转为触发md-datepicker?得到这样的东西:
答案 0 :(得分:0)
您可以使用md-input-container和md-datepicker,并使用类自定义外观。希望这会有所帮助..
<div class="form-group form-group-sm row">
<div class="col-md-6">
<div ng-class="{ 'has-error': ....}">
<label for="startDate" class="required-field">Start Date</label>
<md-input-container class="custom-md-container">
<md-datepicker class="customDatePicker" id="startDate" md-placeholder="Start Date" name="startDate" md-open-on-focus="true" ng-model=".." required></md-datepicker>
</md-input-container>
</div>
</div>
</div>