• download
  • documentation
  • forums
  • demo
  • contact
  • blog

meteora

javascript widgets

Documentation

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

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('Meteora.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 Meteora.Spinbutton documentation

Copyright © 2007-2009 Astrata Software.