com.smartgwt.client.docs

## Interface RuleCriteria

-     public interface RuleCriteria

  ### Form Rules

  If a property says it supports "rule criteria" it means that the criteria will be evaluated in the context of the current `Canvas.ruleScope`, so can set `Criterion.fieldName` to a path that references state in the current rule context.

  Because this type of criteria are allowed to reference UI state (such as whether any records are selected in an adjacent grid) they are not generally used to filter DataSource records, since such criteria would not be able to be evaluated on the server.

  All RuleCriteria are also `Dynamic Criteria` unless otherwise noted.

  See Also:
    `Tab.getEnableWhen()`, `Canvas.getVisibleWhen()`, `Canvas.getEnableWhen()`, `FormItem.getRequiredWhen()`, `FormItem.getVisibleWhen()`, `FormItem.getReadOnlyWhen()`, `FormItemIcon.getEnableWhen()`, `FormItemIcon.getVisibleWhen()`, `MenuItem.getEnableWhen()`