meta data for this page
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:quick_reference_parameters [2020/12/08 06:45] JSCAD Editor |
en:quick_reference_parameters [2021/05/12 08:02] (current) JSCAD Editor |
||
---|---|---|---|
Line 1: | Line 1: | ||
==== Design Parameters ==== | ==== Design Parameters ==== | ||
- | A design can have parameters by declaring a special function; getParameterDefinitions(). | ||
- | In applications and browsers, these parameters are presented to users, allowing users to interactively | + | A design can have interactive parameters by declaring a special function; getParameterDefinitions(). |
+ | |||
+ | In applications and browsers, these parameters are presented to users, allowing users to change designs. | ||
=== Usage === | === Usage === | ||
+ | |||
This function must return an array of parameter definitions, | This function must return an array of parameter definitions, | ||
Line 52: | Line 54: | ||
<code javascript> | <code javascript> | ||
- | const getParameterDefinitions = ()=> { | + | const getParameterDefinitions = () => { |
return [ | return [ | ||
{ name: ' | { name: ' | ||
Line 59: | Line 61: | ||
</ | </ | ||
- | The list of captions are those shown in the HTML form, i.e. pull down list. The list of values define a value for each caption. And, the choosen | + | The list of captions are those shown as a pull down list. The list of values define a value for each caption. And, the chosen |