UncleCheese\DisplayLogic\Extensions\DisplayLogic
Synopsis
class DisplayLogic
extends Extension
{
- // members
- protected array $displayLogicCriteria = ;
- // methods
- public Criteria setDisplayLogicCriteria()
- public Criteria displayIf()
- public Criteria hideIf()
- public Criteria displayUnless()
- public Criteria hideUnless()
- public void getDisplayLogicCriteria()
- public string DisplayLogicMasters()
- public string DisplayLogicAnimation()
- public string DisplayLogic()
- public void onBeforeRender()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
protected
- $displayLogicCriteria — array
Methods
public
- DisplayLogic() — Loads the dependencies and renders the JavaScript-readable logic to the form HTML
- DisplayLogicAnimation() — Answers the animation method to use from the criteria object
- DisplayLogicMasters() — A comma-separated list of the master form fields that control the display of this field
- displayIf() — If the criteria evaluate true, the field should display
- displayUnless() — If the criteria evaluate true, the field should hide.
- getDisplayLogicCriteria()
- hideIf() — If the criteria evaluate true, the field should hide.
- hideUnless() — If the criteria evaluate true, the field should display.
- onBeforeRender()
- setDisplayLogicCriteria()