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 Sep 8, 2020. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+26-6Lines changed: 26 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ This directive allows you to split stuff !
9
9
10
10
**NOTE :** if you use IE<=9, iOS<7 or Android<4 please include the [requestAnimationFrame polyfill](https://github.com/darius/requestAnimationFrame/blob/master/requestAnimationFrame.js) in your application.
11
11
12
+
**NOTE :** version 1.x is only compatible with IE>=10. If you use IE<=9 you need to use version 0.x
13
+
12
14
13
15
## Usage
14
16
@@ -57,8 +59,26 @@ Default: `'row'`
57
59
58
60
A fake [flex-direction property](http://www.w3.org/TR/css3-flexbox/#flex-direction). It specifies how the child elements are placed in the layout container, by setting the direction of the flex container's main axis. This determines the direction that child elements are laid out in.
59
61
62
+
### dividerSize
63
+
64
+
Type: `Integer`
65
+
Default: `10`
66
+
67
+
The size in pixels that you want the divider/splitbar to be.
68
+
60
69
## Child Attributes
61
70
71
+
### uiLayoutContainer
72
+
73
+
Required on all child elements of the ui-layout element.
74
+
75
+
```
76
+
<div ui-layout>
77
+
<div ui-layout-container></div>
78
+
<div ui-layout-container></div>
79
+
</div>
80
+
```
81
+
62
82
### size
63
83
Type: `String`
64
84
@@ -67,12 +87,12 @@ Sets the default placement of the splitbar.
67
87
```
68
88
pixels
69
89
<div ui-layout>
70
-
<div size="100px"></div>
90
+
<div ui-layout-container size="100px"></div>
71
91
</div>
72
92
73
93
percentage
74
94
<div ui-layout>
75
-
<div size="10%"></div>
95
+
<div ui-layout-container size="10%"></div>
76
96
</div>
77
97
```
78
98
@@ -86,12 +106,12 @@ Specifices the minimum size the child element can be set to. Defaults to the wid
86
106
```
87
107
pixels
88
108
<div ui-layout>
89
-
<div min-size="100px"></div>
109
+
<div ui-layout-container min-size="100px"></div>
90
110
</div>
91
111
92
112
percentage
93
113
<div ui-layout>
94
-
<div min-size="10%"></div>
114
+
<div ui-layout-container min-size="10%"></div>
95
115
</div>
96
116
```
97
117
@@ -104,12 +124,12 @@ Specifices the maxium size the child element can be set to.
0 commit comments