-
Notifications
You must be signed in to change notification settings - Fork 297
/
config.php
72 lines (65 loc) · 2.85 KB
/
config.php
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
<?php
return [
'defaults' => [
'wrapper_class' => 'form-group',
'wrapper_error_class' => 'has-error',
'label_class' => 'control-label',
'field_class' => 'form-control',
'field_error_class' => '',
'help_block_class' => 'help-block',
'error_class' => 'text-danger',
'required_class' => 'required',
'help_block_tag' => 'p',
// Override a class from a field.
//'text' => [
// 'wrapper_class' => 'form-field-text',
// 'label_class' => 'form-field-text-label',
// 'field_class' => 'form-field-text-field',
//]
//'radio' => [
// 'choice_options' => [
// 'wrapper' => ['class' => 'form-radio'],
// 'label' => ['class' => 'form-radio-label'],
// 'field' => ['class' => 'form-radio-field'],
// ]
//],
//
// 'choice' => [
// 'choice_options' => [
// 'wrapper_class' => 'choice-wrapper-class',
// 'label_class' => 'choice-label-class',
// 'field_class' => 'choice-field-class'
//
// # For choice type you may overwrite default choice options for each variant (checkbox, radio or select)
// 'checkbox' => [
// 'wrapper_class' => 'choice-checkbox-wrapper-class',
// 'label_class' => 'choice-checkbox-label-class',
// 'field_class' => 'choice-checkbox-field-class',
// ]
// ]
//]
],
// Templates
'form' => 'laravel-form-builder::form',
'text' => 'laravel-form-builder::text',
'textarea' => 'laravel-form-builder::textarea',
'button' => 'laravel-form-builder::button',
'buttongroup' => 'laravel-form-builder::buttongroup',
'radio' => 'laravel-form-builder::radio',
'checkbox' => 'laravel-form-builder::checkbox',
'select' => 'laravel-form-builder::select',
'choice' => 'laravel-form-builder::choice',
'repeated' => 'laravel-form-builder::repeated',
'child_form' => 'laravel-form-builder::child_form',
'collection' => 'laravel-form-builder::collection',
'static' => 'laravel-form-builder::static',
// Remove the laravel-form-builder:: prefix above when using template_prefix
'template_prefix' => '',
'default_namespace' => '',
'custom_fields' => [
// 'datetime' => App\Forms\Fields\Datetime::class
],
'plain_form_class' => \Kris\LaravelFormBuilder\Form::class,
'form_builder_class' => \Kris\LaravelFormBuilder\FormBuilder::class,
'form_helper_class' => \Kris\LaravelFormBuilder\FormHelper::class,
];