Components
    • Animation
    • Buttons
    • Charts
    • Common Utilities
    • Conversational UI
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Grid
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListView
    • Notification
    • PDF Processing
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • Sortable
    • Tooltip
    • TreeList
    • TreeView
    • Upload
    Sample Applications
    Styling & Themes
    Common Features
    Project Setup
    Changelog

DateInput

A subclass of React.Component.

props

Readonly<DateInputProps> intersected with Readonly<{ children?: ReactNode; }>

The props of the DateInput component.

element

HTMLInputElement | null

Gets the element of the DateInput.

class App extends React.Component {
    constructor(props) {
        super(props);
    }
    element = null;
    render() {
        return (
            <div>
                <DateInput
                    ref={(dateInput) =>
                        this.element = dateInput ? dateInput.element : null}
                />
                <button onClick={() => console.log(this.element)}>console.log the element</button>
            </div>
        );
    }
}

ReactDOM.render(
    <App />,
    document.getElementsByTagName('my-app')[0]
);

name

string | undefined

Gets the name property of the DateInput.

validity

FormComponentValidity

Represents the validity state into which the DateInput is set.

value

Date | null

Gets the value of the DateInput.

In this article

Not finding the help you need?