silverstripe-framework/docs/en/changelogs/3.1.1.md
Naomi Guyer 8b5f89f3b9 API: Treedropdownfield showsearch default true, provide better ui
Set search option true on treedropdown fields by default, to provide a
fallback solution when trees fail to render (too many children errors)

Provide better indication/more meaningful styling to search (match
chosen styles for consistency)
2013-08-29 16:21:04 +12:00

639 B

3.1.1 (unreleased)

Overview

CMS

Framework

  • Treedropdownfield showsearch defaults to true

Details

Upgrading

Treedropdownfield showsearch defaults to true

The showSearch option of TreedropdownField is now set to true by default. This is to provide a fallback ui for when children of a tree node fail to render (due to too many children). You may set search as false when initializing a TreedropdownField, or afterwards:

:::php
$treedropdownfield->setShowSearch(false);

If your data requires a specialized search function, you may specify it within:

:::php
$treedropdownfield->setSearchFunction();