Imports the model into the current tree. NOTE: The model is imported AFTER the current evaluation ends. It is not possible to reference the resulting model during this evaluation. All Rule event triggers are suppressed during this operation.
Returns true if model.ruleName is bound to a value. Returns false if there is no such rule on model. Does not create a dependency on ruleName.
Performs the lookup operation. This is called from inside Lookup rules.
Sorts a list of models by given criteria, returning a shallow copy. R.model.sort(models, ruleName, sortFunction?) => new list of models, sorted The rule should produce a string or a number unless a custom sort function is supplied. If not supplied, the sort function will produce an ascending ordering, according to type, case-insensitve for strings. The rule will be evaluated on each model only once, before any sorting has started.
It will throw exceptions if:
Creates a model rule containing value and adds it to model. NOTE: The rule is added AFTER the current evaluation ends. It is not possible to reference the resulting value during this evaluation.
Removes all model rules on model and below. This removes all model rules where the owner refchain starts with model.refChain -- even if models with matching refChains no longer exist. NOTE: The deletion happens AFTER the current evaluation ends. During this evaluation, all of the rules to be deleted still exist.
The model we starting from