• 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

Bubble demo

A bubble will appear where is appropiate and remain there until the window changes it size or the element changes its position. Click on the inputs and have fun using the tab key.

Bubble 1

Opened at start, featuring a red line

Bubble 2

Show when focus, hide when blur

HTML source

<div class="twocolumns">
  <div class="column">
    <h4>Bubble 1</h4>
    Opened at start, featuring a red line<br />
    <input type="text" id="bubble-1" value="Click me, then unfocus me" />
  </div>
  <div class="column">
    <h4>Bubble 2</h4>
    Show when focus, hide when blur<br />
    <input type="text" id="bubble-2" value="Click me, then unfocus me" />
  </div>
</div>

Javascript source

Meteora.uses('Meteora.Bubble');
Meteora.onStart(
  function () {
    var bubble = new Bubble(
      'bubble-1',
      '<b>Look</b> at this input',
      {
        'showEvent':  'focus',
        'hideEvent':  'blur',
        'width':      200,
        'height':     60
      }
    );
    bubble.show();
    bubble.red();
    var bubble = new Bubble(
      'bubble-2',
      'You have focused this input, when you loose the focus, the bubble will hide itself.',
      {
        'showEvent':  'focus',
        'hideEvent':  'blur',
        'width':      300,
        'height':     40
      }
    );
  }
);

Documentation

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

Copyright © 2007-2009 Astrata Software.