mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
27 lines
639 B
Markdown
27 lines
639 B
Markdown
|
# 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();
|
||
|
|