inputEx - VectorField Usage

Basic VectorField creation

Use the following code to create a basic inputEx VectorField.

var field = new YAHOO.inputEx.VectorField({parentEl: 'container1', value: [-10.4,13*2]});

VectorField with separators

VectorField inherits CombineField, so you can change the separators :

new YAHOO.inputEx.VectorField({ parentEl: 'container2', value: [-10.4,13*2], separators: ["x:",", y:", null] });

VectorField dimension

Set the dimension option :

new YAHOO.inputEx.VectorField({ parentEl: 'container3', value: [-1, 0, 1], dimension: 3, separators: ["x:",", y:", ", z: ", null] });