behavior: slider

Implementation of the slider input element.

Elements

that have this behavior applied by default:

  • <input type=“hslider”> - horizontal slider, inline block;
  • <widget type=“hslider”> - horizontal slider, block;
  • <input type=“vslider”> - vertical slider, inline block;
  • <widget type=“vslider”> - vertical slider, block;

Attributes

that this behavior knows about:

  • value - integer, intital value.
  • min - integer, minmum value.
  • max - integer, maximum value.
  • step - integer, optional (default=1), step value.
  • buddy - string, id of buddy element that recives string representation of the value when value is changed.

Events

  • BUTTON_STATE_CHANGED event - value has changed by the user.
  • BUTTON_CLICK event - the user has finished selection (e.g. on MOUSE_UP).

Value

type json::value::V_INT, reflects current value of the slider.

h-smile/built-in-behaviors/slider.txt · Last modified: 2008/03/12 13:59 by andrew
chimeric.de = chi`s home Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0