DateTimeExpressionRenderer class

Extends

ExpressionRenderer

Index

Constructors

Protected Properties

Protected Accessors

Public Methods

Protected Methods

Constructors


constructor

⊕ new DateTimeExpressionRenderer(panel: QueryPanel,expression: Expression,valueEditor: EqValueEditor,slot?: HTMLDivElement): DateTimeExpressionRenderer

Parameters:


Protected Properties


element

● element: HTMLDivElement


expression

● expression: Expression


labelElement

● labelElement: HTMLElement


panel

● panel: QueryPanel


valueEditor

● valueEditor: EqValueEditor


Protected Accessors


cssPrefix

⇄ get cssPrefix(): string

Returns string


Public Methods


adjustWidth

▸ adjustWidth(): void

Returns void


refresh

▸ refresh(): void

Returns void


render

▸ render(isEditMode?: boolean): HTMLDivElement

Parameters:

  • isEditMode: boolean, Default value = false

Returns HTMLDivElement


Protected Methods


closeEditor

▸ closeEditor(): void

Returns void


convertFromInternalFormat

▸ convertFromInternalFormat(dateTime: string): Date

Parameters:

  • dateTime: string

Returns Date


convertToInternalFormat

▸ convertToInternalFormat(dateTime: Date): string

Parameters:

  • dateTime: Date

Returns string


getClassesToAdd

▸ getClassesToAdd(): string

Returns string


getContext

▸ getContext(): EqContext

Returns EqContext


getEmptyText

▸ getEmptyText(): string

Returns string


getLabelText

▸ getLabelText(): string

Returns string


getValue

▸ getValue(): string

Returns string


isEditable

▸ isEditable(): boolean

Returns boolean


isEmptyValue

▸ isEmptyValue(): boolean

Returns boolean


isReadOnly

▸ isReadOnly(): boolean

Returns boolean


renderEditor

▸ renderEditor(): void

Returns void


renderLabelElement

▸ renderLabelElement(): HTMLElement

Returns HTMLElement


setValue

▸ setValue(value: string,silent?: boolean): void

Parameters:

  • value: string
  • silent: boolean, Optional

Returns void


showEditor

▸ showEditor(): void

Returns void


showValidationError

▸ showValidationError(message: string,target?: EventTarget): void

Parameters:

  • message: string
  • target: EventTarget, Optional

Returns void


validateInput

▸ validateInput(value: string): ValidationResult

Parameters:

  • value: string

Returns ValidationResult