beforeShow

fires before a control is shown

boolean beforeShow(Date|string value){ ... };

Parameters

valueDate|stringthe current value of the control

Returns

booleanfalse - to prevent a control from being shown, otherwise - true

Example

form.getItem("datepicker").events.on("BeforeShow", function(value) {
    console.log("BeforeShow", value);
    return true;
});

Change log

added in v7.0

Back to top