Skip to content

AgDateInputComponent documentation

import { AgDateInputComponent } from '@siemens/element-ng/ag-grid';

Custom AG Grid date component using Element datepicker. This component replaces the native HTML date input with the Element design system datepicker.

Attributes and Methods

NameTypeDefaultDescription
afterGuiAttached()
() => void

Lifecycle hook called after the component GUI is attached. Sets up event listeners to prevent filter popup from closing when interacting with calendar.

Implements BaseDate

agInit()
(params: IDateParams<any, any>) => void
Parameters
date
Date | undefined undefined

The selected date value.

getDate()
() => Date | null

Returns the current date represented by this component

Implements IDate

getGui()

Return the DOM element of your component, this is what the grid puts into the DOM

Implements IComponent<IDateParams<any, any>>

setDate()
(date: Date | null) => void

Sets the date represented by this component

Implements IDate

Parameters

Except where otherwise noted, content on this site is licensed under MIT License.