dhx.ui.datepicker

Methods

  • adjust - adjusts the component to the size of the outer parent HTML container
  • attachEvent - attaches custom handler to inner event
  • bind - binds components
  • blockEvent - blocks event triggering
  • callEvent - calls inner event
  • define - sets configuration property or a hash of properties
  • destructor - destructs an object
  • detachEvent - detaches custom code from handler
  • focus - moves focus to the input
  • getInput - returns input html object
  • getList - returns List object containing select options of the control
  • getNode - returns main html container of view
  • getParent - returns parent object of current view
  • getValue - returns current value
  • hasEvent - checks whether a component has an event
  • hide - hides view
  • isVisible - returns true if current view is visible
  • mapEvent - routes events from one object to another
  • refresh - repaints input
  • render - renders a single item
  • resize - adjusts view to the new size
  • setValue - sets a new value for the button
  • show - makes view visible
  • unblockEvent - enables event triggering

Events

Properties

  • animate - defines animation on view change (object with direction, type and subtype properties) or disables animation (false)
  • container - html container or its id where view needs initializing
  • css - class name for view container
  • data - specifies select options of the control.
  • dateFormat - sets date format (%Y-%m-%d) in the control
  • externalDateFormatStr - converts date object into string. Output string will have the format set by the parameter externalDateFormat
  • externalDateFormat - sets the format data will be saved and loaded in.
  • gravity - view gravity (1 by default)
  • height - view height
  • hidden - sets whether a view will be hidden initially
  • iconCss - defines a css class for the control icon. By default - “dhx_list_icon” . The value false allows you to hide the icon.
  • iconWidth - the width of the control icon.
  • icon - enables icon in the control
  • id - view id
  • inputHeight - the height of the control
  • inputWidth - the width of control.
  • labelWidth - width of label
  • label - text label of control
  • on - allows to attach custom handlers to inner events of the component
  • options - defines select options of control
  • popup - allows to attach pop-up menu to the button
  • scroll - enables scrolling
  • stringResult - if the parameter is set to true, the method getValue returns data as string (otherwise, as object).
  • template - item template
  • type - type of control
  • value - the id of initial option.
  • width - view width