class select2_library in Chosen 7.3
TODO: Documentation.
Hierarchy
- class \select2_library implements chosen_library_interface
Expanded class hierarchy of select2_library
1 string reference to 'select2_library'
- select2.inc in plugins/
library/ select2.inc
File
- plugins/
library/ select2_library.class.php, line 6
View source
class select2_library implements chosen_library_interface {
public $title = 'Select2';
public $website = 'http://ivaynberg.github.io/select2';
public $version = '3.42.0';
public $directory = 'select2';
public $library_name = 'select2';
public $file_name = 'select2.jquery.min.js';
public $css = 'select2.css';
public function options($default_values = array()) {
$form = array();
$form['minimum_single'] = array(
'#type' => 'select',
'#title' => t('Minimum number of options for single select'),
'#options' => drupal_map_assoc(array_merge(array(
'0' => t('Always Apply'),
), range(1, 25))),
'#default_value' => isset($default_values['minimum_single']) ? $default_values['minimum_single'] : 20,
'#description' => t('The minimum number of options to apply Chosen for single select fields. Example : choosing 10 will only apply Chosen if the number of options is greater or equal to 10.'),
);
return $form;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
select2_library:: |
public | property | ||
select2_library:: |
public | property | ||
select2_library:: |
public | property | ||
select2_library:: |
public | property | ||
select2_library:: |
public | property | ||
select2_library:: |
public | property | ||
select2_library:: |
public | property | ||
select2_library:: |
public | function |