@progress/kendo-vue-dateinputs
Version:
39 lines (38 loc) • 1.54 kB
TypeScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { FormComponentProps } from '@progress/kendo-vue-common';
import { DateInputSettings } from '../models/main';
/**
* Represents the props of the [Kendo UI for Vue DateInput component]({% slug overview_dateinput %}). The generic argument is passed to the `change` property and is used as a target in the [`DateInputChangeEvent`]({% slug api_dateinputs_dateinputchangeevent %}) interface.
*/
export interface DateInputProps extends FormComponentProps, DateInputSettings {
/**
* Specifies the value of the placeholder.
*/
placeholder?: string;
/**
* @hidden
*/
modelValue?: Date | null;
/**
* Specifies the value of the DateInput.
*/
value?: Date | null;
/**
* Specifies the validate of the DateInput.
*/
validate?: boolean;
/**
* Specifies the default value of the DateInput. If `value` is not set, this value will correspond to the initial value.
*/
defaultValue?: Date | null;
/**
* Determines the event handler that will be fired when the user edits the value ([see example]({% slug dateranges_dateinput %}).
*/
onChange?: (event: any) => void;
}