当我点击它时,如何破解输入字段来触发md-datepicker

时间:2017-06-05 13:29:59

标签: javascript html angularjs

如何将输入文本转为触发md-datepicker?得到这样的东西: wanted result

1 个答案:

答案 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>