You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 7, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: Resources/docs/twig_widgets.md
+7-6Lines changed: 7 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Twig widgets
2
2
3
-
In order to simplify the usage of widget and info boxes, and to help with a consitent look and feel throughout your application,
3
+
In order to simplify the usage of widget and info boxes, and to help with a consistent look and feel throughout your application,
4
4
the bundle provides an [embeddable][3] template for the [box-widget][1] and the [infobox-widget][2].
5
5
6
6
## Global configuration
@@ -45,7 +45,8 @@ admin_lte:
45
45
The box widget comes with several variables and blocks to define content and customize the rendering and behavior individually.
46
46
47
47
### Variables
48
-
_**Notice:** since FALSE will not be considered a value by Twig and therefor activate the default filter, you will have to use `0` instead_
48
+
_**Notice:** since FALSE will not be considered a value by Twig and therefor activate the default filter, you will have to use `0` instead.
49
+
49
50
<dl>
50
51
<dt>collapsed
51
52
<dd>Will render the Widget in a collapsed state and add and expander toolbutton.
@@ -60,10 +61,10 @@ _**Notice:** since FALSE will not be considered a value by Twig and therefor act
60
61
<dd>Will render the .box-footer even if it has no content.
61
62
62
63
<dt>collapsible & collapsible_title
63
-
<dd>Will add a collapse toolbutton. This setting will alwas be true if the box is defined as `collapsed`. The `collapsible_title` will be set as the button's `title` attribute.
64
+
<dd>Will add a collapse tool-button. This setting will always be true if the box is defined as `collapsed`. The `collapsible_title` will be set as the button's `title` attribute.
64
65
65
66
<dt>removable & removable_title
66
-
<dd>Will add a remove toolbutton. The `removable_title` will be set as the button's `title` attribute.
67
+
<dd>Will add a remove tool-button. The `removable_title` will be set as the button's `title` attribute.
67
68
68
69
<dt>boxtype
69
70
<dd>Sets the color-type of the box. The value should only be the type name without prefix.
@@ -74,7 +75,7 @@ _**Notice:** since FALSE will not be considered a value by Twig and therefor act
74
75
<dl>
75
76
76
77
<dt>box_before
77
-
<dd>Content just before the box's openig div.
78
+
<dd>Content just before the box's opening div.
78
79
79
80
<dt>box_title
80
81
<dd>Content inside of `.box-title`.
@@ -92,7 +93,7 @@ _**Notice:** since FALSE will not be considered a value by Twig and therefor act
92
93
<dd>Content just after the box's closing `div`
93
94
94
95
<dt>box_body_class
95
-
<dd>Addiotional css class for the box_body HTML element
96
+
<dd>Additional css class for the box_body HTML element
96
97
97
98
<dt>box_attributes
98
99
<dd>Additional HTML attributes for the outer box HTML element
0 commit comments