abidibo.net

Calculator documentation

Welcome to the Calculator documentation page. For a quick start guide, take a look at the demo page.

Calculator

This is the class that has to be instantiated in order to get a calculator object. When instantited the calculator is rendered in the document.

constructor

Constructs a Calculator instance. The syntax is:

var myinstance = new Calculator(options);

The available options are:

  • anchor: (String|Element). The id attribute or the element itself in which inject the calculator. If null the calculator is rendered over the document. Default: null.
  • drag: (Boolean). Whether or not to make the calculator draggable. Works only if the anchor options is null. Default: true.
  • digits: (Number). Number of display digits. Default: 14.

remove

Removes the calculator from the document.

myinstance.remove();

hide

Hides the calculator.

myinstance.hide();

show

Shows the calculator.

myinstance.show();

toggle

Toggles the calculator visibility.

myinstance.toggle();

Styling

The plugin comes with its css stylesheet which may be customized to fit your needs.

project page demo download