禁用Umbraco DateTimePicker指令

时间:2019-01-18 09:23:59

标签: umbraco

我正在使用Umbraco DateTimePicker指令,在某些情况下,我想禁用该控件。

在文档中,我没有看到如何禁用控件:https://our.umbraco.com/apidocs/ui/#/api/umbraco.directives.directive:umbDateTimePicker

这是我的代码:

<div class="umb-property ng-scope" data-element="property-sessionTime">
<ng-form name="propertyForm" class="ng-pristine ng-valid">
    <div class="control-group umb-control-group">
        <div class="umb-el-wrap">
            <label class="control-label ng-binding" for="sessionTime" title="sessionTime">
                Tiempo de realización
                <small class="ng-binding">Seleccione el tiempo para realizar la evaluación.</small>
            </label>
            <div class="controls">
                <div class="umb-property-editor ng-scope">
                    <div>
                        <div class="ng-scope">
                            <umb-date-time-picker                                                                                                  
                                                    ng-if="vm.model.questionLoaded || vm.model.showDetail" options="vm.sessionTimeConfig"
                                                    on-change="vm.sessionTimePickerChange(event)"
                                                    on-error="vm.sessionTimePickerError(event)">
                            </umb-date-time-picker>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</ng-form>

感谢前进。

0 个答案:

没有答案