Download the PHP package dnadesign/silverstripe-elemental-decisiontree without Composer
On this page you can find all versions of the php package dnadesign/silverstripe-elemental-decisiontree. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dnadesign/silverstripe-elemental-decisiontree
More information about dnadesign/silverstripe-elemental-decisiontree
Files in dnadesign/silverstripe-elemental-decisiontree
Package silverstripe-elemental-decisiontree
Short Description Element displaying information in regards to answers given to questions
License BSD-3-Clause
Informations about the package silverstripe-elemental-decisiontree
Element Decision Tree
Introduction
A decision tree is a succession of questions which depends on each others answers and displays a result accordingly. This module provides an easy way to build such tree and to add it to a page as an element.
Installation (with composer)
$ composer require dnadesign/silverstripe-elemental-decisiontree
Requirements
- SilverStripe 6.x
- (dnadesign/silvertsripe-elemental)[https://github.com/dnadesign/silverstripe-elemental]
Configuration
The module automatically loads its JS and CSS only on pages that contain a decision tree element. This behaviour can be customised via YML config.
Available options
| Option | Default | Description |
|---|---|---|
javascript |
'dnadesign/silverstripe-elemental-decisiontree:javascript/decision-tree.src.js' |
Path to the JS file to load. Set to empty string to disable. |
css |
'dnadesign/silverstripe-elemental-decisiontree:css/decisiontree.css' |
Path to a CSS file to load. Set to empty string to disable. |
auto_detect |
true |
When enabled, checks if the current page has a decision tree element before loading assets. Set to false to load assets on all pages. |
Examples
Use your own JS instead of the module's default:
Use your own CSS instead of the inline focus styles:
Disable all asset loading:
Load assets on all pages (skip automatic element detection):
Screenshots
All versions of silverstripe-elemental-decisiontree with dependencies
silvershop/silverstripe-hasonefield Version ^5
unclecheese/display-logic Version ^4