File Binding.lua

Functions

Binding:getMatchBinding (params) Define binding which asserts (true) if all criteria match.
Binding:new (t) Constructor for new instance.
Binding:newClass (t) Constructor for extending class.


Functions

Binding:getMatchBinding (params)
Define binding which asserts (true) if all criteria match.

Parameters:

  • params:
    props (property-table, required) bind-to object.
    trueKeys (array, optional) of those having to be true
    unTrueKeys (array, optional) of those having to be false or nil.
    valueTable (table, optional) keys are keys and values are values which must match for truth.
    unValueTable (table, optional) keys are keys and values are values which must NOT match for truth.
    matchValue (any, default: true) value to return upon match.
    unMatchValue (any, default: false) value to return if not matching.

Usage:

    all keys must be from same property table, which must be passed. 

Return value:

    binding assignable to enabled/visible or value... (make sure match/un-match values are compatible with target assignment type).
Binding:new (t)
Constructor for new instance.

Parameters:

  • t:
Binding:newClass (t)
Constructor for extending class.

Parameters:

  • t:

Valid XHTML 1.0!