Functiondojox.wire.ml.ActionFilter.filter

dojo.require("dojox.wire.ml.Action");
defined in dojox/wire/ml/Action.js

If a value is undefined for a property, specified with 'required', this method returns false. If the value for a property is defined, but there isn't a requiredValue for it then any non-false value will cause the method to return true. if requiredValue is set, then filter compares that value with the value from the required property and returns true if and only if they match. The type option just allows for a way to convert the required property values into a proper form for comparison (boolean, number, etc). If 'message' is specified, it is set to a proeprty specified with 'error' or shown with alert(). If 'required' starts with "arguments", a property of the method arguments are checked.

Usage

function () (view source)