Skip to content

Commit

Permalink
NEW SearchableDropdownField
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 27, 2023
1 parent cfd8f05 commit 00bbb80
Show file tree
Hide file tree
Showing 6 changed files with 540 additions and 1 deletion.
Empty file added src/Forms/Multi
Empty file.
18 changes: 18 additions & 0 deletions src/Forms/SearchableDropdownField.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

namespace SilverStripe\Forms;

use SilverStripe\Forms\DropdownField;

class SearchableDropdownField extends DropdownField
{
use SearchableDropdownTrait;

// This needs to be defined on the class, not the trait, or else a there is a PHP error
protected $schemaComponent = 'SearchableDropdownField';

protected function init(): void
{
// noop
}
}
Loading

0 comments on commit 00bbb80

Please sign in to comment.