ve.Date

ve.Component. ve.Date

Refer to ve.Component for methods or fields inherited from this Component's parent such as .options.attributes or .element.

Date component used for selecting historical dates over the long run. The value stored is an object with the structure { year: number, month: number, day: number, hour: number, minute: number }, with negative years representing BC. This data structure is otherwise known as a UF.Date.

  • Functional binding: veDate().
Constructor:
  • arg0_value: UF.Date
  • arg1_options: Object
    • .disabled=false: boolean
Instance:
  • .v: UF.Date
Methods:
  • handleEvents() - Used internally to handle events for all date inputs.

Constructor

new ve.Date()

Source:

Extends

Members

handleEvents :Object

Returns the date length contained in the current component.

Source:
Type:

handleEvents

Sets the date length contained in the current component.

Source:

v :Object

Returns the date contained in the present component.

  • Accessor of: ve.Date
Source:
Type:

v

Sets the date contained in the present component.

  • Accessor of: ve.Date
Source:

v :Array.<string>

Returns the current file path pointed to by the component.

  • Accessor of: ve.File
Source:
Type:

v

Sets the current file path pointed to by the component.

  • Accessor of ve.File
Source:

from_binding

Internal .from_binding setter for handling .options.from_binding. Accepts a string literal that is then parsed to a variable reference.

.to_binding counterparts are manually handled child-side.

Overrides:
Source:

limit

Tests the current this.limit by calling this.limit_function(this.v, this). Otherwise resolves to true if no .options.limit is set.

Overrides:
Source:

name

Returns the visual name of the present ve.Component,

Overrides:
Source:

Methods

handleEvents()

Handles input events for ve.Date. Local helper function, since inputs need to be constrained to valid dates to remain fluid.

  • Method of: ve.Date
Source:

addComponent()

Adds the current component to this.parent_el should it exist.

Overrides:
Source:

bind(arg0_container_el)

Manually binds/mounts the present ve.Component into the visual DOM.

Overrides:
Source:
Parameters:
Name Type Description
arg0_container_el HTMLElement

fireFromBinding()

Pseudo-setter from binding. Fires only upon program-driven changes to .v directly, which means that this has to be monitored manually component-side in set v(). This should always come last in set v().

Overrides:
Source:

fireToBinding()

Pseudo-setter to binding. Fires only upon user-driven changes, which means that this has to be monitored manually component-side.

Overrides:
Source:

remove()

Removes the component/element from the DOM.

Overrides:
Source:

removeComponent()

Removes the current component from this.parent_el should it exist.

Overrides:
Source:

setOwner(arg0_value, arg1_owner_array)

Sets the root parent and ownership tree. Influences this.parent_el, this.owner, this.owners.

Overrides:
Source:
Parameters:
Name Type Description
arg0_value
arg1_owner_array

setValueFromObject(arg0_object, arg1_object)

Destructures Object values and transfers them into the .v instance fields of each Vercengen component.

Overrides:
Source:
Parameters:
Name Type Description
arg0_object Object

The Vercengen object to transfer to.

arg1_object Object

The other object to transfer from.