richardsjoqvist/silverstripe-optionaltreedropdownfield

There is no license information available for the latest version (1.1.3) of this package.

This module extends TreeDropdownField to allow clearing a selection

Installs: 1 728

Dependents: 1

Suggesters: 0

Stars: 2

Watchers: 1

Forks: 5

Open Issues: 0

Type: silverstripe-module

1.1.3 2016-04-06 04:54 UTC

README

This module extends SilverStripe TreeDropdownField to allow clearing a selection.

Requirements

  • SilverStripe 3.1 (or higher)

Installation

  1. Run composer require richardsjoqvist/silverstripe-optionaltreedropdownfield
  2. Run sake /dev/build

Usage

$fields = new FieldList();  
$treeField = new OptionalTreeDropdownField('MyFieldID', 'My Field Title', 'SiteTree');  
$treeField->setEmptyString('No page');
$fields->push($treeField);