XY-Field Widget is a MooTools class that allows you to create a "field"-wdiget. This field can be seen as a two-dimensional slider. It allows users to work with data in a more compact and intuitive way.
How to use
First, make sure you have the code on your server. Then add it to the page:
To make an XY-field, you'll need two elements, a container and a handle (knob):
<div id="container"> <div id="knob"></div> </div>
It's is not necessary to put the knob inside the container, but it's a good practice to keep things in order.
Now you need to initialize the class. This is done like this:
container = $('container'); knob = $('knob'); new Field(container, knob);
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.blog comments powered by Disqus