Places

 

  • Download
  • Documentation
  • Forums
  • Demo
  • Contact
  • Blog
  • My account

Meteora

Javascript Widgets

Controls

  • Autocomplete
  • Bubble
  • Calendar
  • Carousel
  • Datagrid
  • Dialog
  • Editor
  • Filebrowser
  • Form Control
  • Menu
  • Notebook
  • Picbox
  • Popup
  • Searchlist
  • Selection
  • Spinbutton
  • Tablesort
  • Toolbox
  • Treeview

Features

  • JsonRpc Core

Effects

  • Visual effects

Control.Spinbutton

Widget demo

A spinbutton containing days of the week:

Day of the week is: (none selected)

HTML source

<input type="text" id="spinbutton-demo-input"/>
<div>
  Day of the week is: <span id="result">(none selected)</span>
</div>

Javascript source

Meteora.uses('Control.Spinbutton');

Meteora.onStart(
  function () {
    new SpinButton(
      'spinbutton-demo-input',
      {
        'values': [
          'Monday',
          'Tuesday',
          'Wednesday',
          'Thursday',
          'Friday',
          'Saturday',
          'Sunday'
        ],
        'onChange': function(data) {
          $('result').innerHTML = data.value;
        },
        'cycle': true
      }
    );
  }
);

Documentation

If you're looking for more documentation about this widget, you may want to read Control.Spinbutton documentation

Powered by textmotion

(c) 2008 Astrata Software