Vamonos.Widget.ResultProperty

Back

The ResultProperty allows you to check upon entering DisplayMode that a variable has some arbitrary property, and set the html of a container accordingly.

Constructor Arguments

container :: String jQuery Selectorrequired

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

failure :: Stringrequired

what container should be set to when varName is false

success :: Stringrequired

what container should be set to when varName is true

test :: Functionrequired

a function that tests for a property on varName

varName :: Stringrequired

the name of variable that will be tested