-
-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathconfig.php
More file actions
80 lines (73 loc) · 2.18 KB
/
config.php
File metadata and controls
80 lines (73 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
return [
/*
* Set the HTML theme for the components
* like alerts, form fields, menus, etc.
*/
'theme' => 'bootstrap4',
/*
* Set the folder to store the custom templates
*/
'custom' => 'themes',
/*
* Set to false to deactivate the Translator for the alert and menu
* components, doing so they will run slightly faster but won't
* search for Lang keys to translate texts.
*
* Note: the FieldBuilder will always use the translator
* to search for attribute names and other texts,
* regardless of this configuration value.
*/
'translate_texts' => true,
/*
* Set to true to deactivate HTML5 form validation
* and test the backend validation
*/
'novalidate' => false,
/*
* Set the configuration for each theme
*/
'themes' => [
/**
* Default configuration for Bootstrap v4
*/
'bootstrap4' => [
/*
* Set a specific HTML template for a field type if the
* type is not set, the default template will be used
*/
'field_templates' => [
// type => template
'checkbox' => 'checkbox',
'checkboxes' => 'collections',
'radios' => 'collections'
]
],
/**
* Configuration for Bulma CSS v1.7.2
*/
'bulma' => [
/*
* Set a specific HTML template for a field type if the
* type is not set, the default template will be used
*/
'field_templates' => [
// type => template
'checkbox' => 'checkbox',
'checkboxes' => 'collections',
'radios' => 'collections',
'select'=>'selects',
],
/*
* Set the default classes for each field type
*/
'field_classes' => [
// type => class or classes
'textarea' => 'textarea',
'default' => 'input',
'checkbox' => 'checkbox',
'error' => 'is-danger'
],
]
]
];