sets values into all the form inputs
values | object | hash of property - value pairs |
update | boolean | if true adds updates the form with new values while exisitng values remain. False by default. |
$$("sets").setValues({
width:250,
height:480
});
The methods allows for setting several values at at time. Pass the IDs of the necessary property elements and their values into the function.
The second parameter helps manipulate values set separately. By delaut, it is false.
Take that we set new value for a width input from the property described above.
$$('sets').setValues({ width:100 });
In this case, the value for the height is lost. To avoid this, set the update parameter to true. The property sheet will be updated with a new value for width input while height value remains unchanged.
$$('sets').setValues({ width:"Paris" }, true);
Back to top