NumericTextBox

A subclass of React.Component.

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

The props of the NumericTextBox component.

element HTMLInputElement | null

Gets the element of the NumericTextBox.

class App extends React.Component {
    constructor(props) {
        super(props);
    }
    element = null;
    render() {
        return (
            <div>
                <NumericTextBox
                    ref={(numericTextBox) =>
                        this.element = numericTextBox ? numericTextBox.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 NumericTextBox.

validity FormComponentValidity

Represents the validity state into which the NumericTextBox is set.

value number | null

Gets the value of the NumericTextBox.

 /