Vamonos.Widget.VarName

Back

VarName shows the variable name and provides a buton to set the variable as a watchVar, and visual feedback for editable variables in editMode.

Constructor Arguments

container :: String jQuery Selectorrequired

The id or a jQuery selector of the div in which this widget should draw itself.

varName :: Stringrequired

the name of variable that this widget represents

displayName :: String – optional

alternate varname to display - defaults to varName. subscript can be displayed as everything following an underscore.

For Example:

displayName: "G_f"

inputVar :: Boolean – default value: false

whether to accept input for this variable in edit mode

watchable :: Boolean – default value: true

whether the variable can be set as a watchVar

watching :: Boolean – default value: false

whether the variable starts off set as a watchVar