Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jon Muñoa Gutierrez 2 posts 72 karma points
    Jan 18, 2019 @ 09:21
    Jon Muñoa Gutierrez
    0

    Hi,

    I´m using the Umbraco DateTimePicker directive and in some cases I want to disable the control.

    In the documentation I didn't see how to disable the control: https://our.umbraco.com/apidocs/ui/#/api/umbraco.directives.directive:umbDateTimePicker

    Here is my code:

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

    Thanks for advance.

Please Sign in or register to post replies

Write your reply to:

Draft