Home Reference Source
import DayComponent from 'formiojs/src/components/day/Day.js'
public class | source

DayComponent

Extends:

src/components/_classes/component/Component.js~ComponentField → DayComponent

Static Member Summary

Static Public Members
public static get

builderInfo: {"title": string, "group": string, "icon": string, "documentation": string, "weight": number, "schema": *}

Static Method Summary

Static Public Methods
public static

schema(extend: ...*): *

Member Summary

Public Members
public get

date: Date: *

Return the date object for this component.

public
public get
public get

days: *

public get
public set
public get

emptyValue: '00/00/0000': string

The empty value for day component.

public get

Get the format for the value string.

public get
public get
public get

months: *

public get

parts: {"day": *, "month": *, "year": *}

public get
public get

showDay: *

public get
public get
public get

Return the raw value.

public
public get
public get
public get

years: *

Private Members
private
private
private

Method Summary

Public Methods
public

attach(element: *): *

public

focus()

public

getDate(value: *): *

Return the date for this component.

public

getFieldValue(name: *): *

public
public

getValue(): *

public

getValueAsString(value: *): null

Get the input value of the date.

public

getValueAt(index: *): *

Get the value at a specific index.

public

init()

public

inputDefinition(name: *): {"type": string, "ref": *, "attr": *}

public

isPartialDay(value: *): *

public
public

normalizeValue(value: *): *

public

removeInputError(elements: *)

public

render(): *

public

renderField(name: *): *

public

selectDefinition(name: *): {"multiple": *, "ref": *, "widget": string, "attr": *}

public

setErrorClasses(elements: *, dirty: *, hasError: *)

public

setValueAt(index: *, value: *): *

Set the value at a specific index.

public

validateRequired(setting: *, value: *): *

Inherited Summary

From class Field
public

render(element: *): *

Static Public Members

public static get builderInfo: {"title": string, "group": string, "icon": string, "documentation": string, "weight": number, "schema": *} source

Static Public Methods

public static schema(extend: ...*): * source

Params:

NameTypeAttributeDescription
extend ...*

Return:

*

Public Members

public get date: Date: * source

Return the date object for this component.

Return:

Date

public dayFirst: * source

public get dayRequired: * source

public get days: * source

public get defaultSchema: * source

public set disabled source

public get emptyValue: '00/00/0000': string source

The empty value for day component.

Return:

'00/00/0000'

public get format: string: * source

Get the format for the value string.

Return:

string

public get inputInfo: * source

public get monthRequired: * source

public get months: * source

public get parts: {"day": *, "month": *, "year": *} source

public get shouldDisabled: * source

public get showDay: * source

public get showMonth: * source

public get showYear: * source

public get validationValue: Date: * source

Return the raw value.

Return:

Date

public validators: * source

public get valueMask: undefined source

public get yearRequired: * source

public get years: * source

Private Members

private _days: undefined[] source

private _months: undefined[] source

private _years: undefined[] source

Public Methods

public attach(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public focus() source

public getDate(value: *): * source

Return the date for this component.

Params:

NameTypeAttributeDescription
value *

Return:

*

public getFieldValue(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public getValidationFormat(): * source

Return:

*

public getValue(): * source

Return:

*

public getValueAsString(value: *): null source

Get the input value of the date.

Params:

NameTypeAttributeDescription
value *

Return:

null

public getValueAt(index: *): * source

Get the value at a specific index.

Params:

NameTypeAttributeDescription
index *

Return:

*

public init() source

public inputDefinition(name: *): {"type": string, "ref": *, "attr": *} source

Params:

NameTypeAttributeDescription
name *

Return:

{"type": string, "ref": *, "attr": *}

public isPartialDay(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public normalizeMinMaxDates(): * source

Return:

*

public normalizeValue(value: *): * source

Params:

NameTypeAttributeDescription
value *

Return:

*

public removeInputError(elements: *) source

Params:

NameTypeAttributeDescription
elements *

public render(): * source

Override:

Field#render

Return:

*

public renderField(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public selectDefinition(name: *): {"multiple": *, "ref": *, "widget": string, "attr": *} source

Params:

NameTypeAttributeDescription
name *

Return:

{"multiple": *, "ref": *, "widget": string, "attr": *}

public setErrorClasses(elements: *, dirty: *, hasError: *) source

Params:

NameTypeAttributeDescription
elements *
dirty *
hasError *

public setValueAt(index: *, value: *): * source

Set the value at a specific index.

Params:

NameTypeAttributeDescription
index *
value *

Return:

*

public validateRequired(setting: *, value: *): * source

Params:

NameTypeAttributeDescription
setting *
value *

Return:

*