Registry / web-framework / unclecheese-display-logic

unclecheese-display-logic

JSON →
library4.0.0phppackagistunverified

Allows assignment of conditions for display and hide of specific form fields based on client side behavior.

composer require unclecheese/display-logic
INSTALL
IMPORT
SIG · UNCLECHEESE-DISPLA
U
unclecheese-display-logic
web-frameworkphpv4.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DisplayLogic
use UncleCheese\DisplayLogic\Forms\DisplayLogic;

Conditionally show/hide form fields in SilverStripe.

<?php use SilverStripe\Forms\TextField; use UncleCheese\DisplayLogic\Forms\DisplayLogic; $field = TextField::create('Name', 'Your Name'); $field->displayIf('ShowField')->isChecked(); // In a form: $fields = FieldList::create([ CheckboxField::create('ShowField', 'Show name field?'), $field ]);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.0.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
unclecheese-display-logic — pip install unclecheese-display-logic · libregistry