|
| 1 | +--- |
| 2 | +order: 1 |
| 3 | +--- |
| 4 | + |
| 5 | + <EuiText> |
| 6 | + <p>The <strong>EuiListGroup</strong> component is used to present <strong>EuiListGroupItems</strong> in a neatly formatted list. Use the <EuiCode>flush</EuiCode> and <EuiCode>bordered</EuiCode> properties for full-width and bordered presentations, respectively. |
| 7 | +Adjust the <EuiCode>gutterSize</EuiCode> prop to increase or decrease the spacing between items.</p> |
| 8 | +</EuiText> |
| 9 | + |
1 | 10 | ```hbs template |
2 | 11 | <EuiFlexGroup> |
3 | 12 | <EuiFlexItem> |
|
47 | 56 | <Input @type='checkbox' @checked={{this.flush}} name='flushed' /> |
48 | 57 | <label for='flushed'>Flush</label> |
49 | 58 | </div> |
50 | | - <div> |
51 | | - <EuiText>Gutter size</EuiText> |
52 | | - <EuiBadge |
53 | | - @color={{if (eq this.gutterSize 'none') 'primary'}} |
54 | | - @onClick={{set this 'gutterSize' 'none'}} |
55 | | - >none</EuiBadge> |
56 | | - <EuiBadge |
57 | | - @color={{if (eq this.gutterSize 's') 'primary'}} |
58 | | - @onClick={{set this 'gutterSize' 's'}} |
59 | | - >small</EuiBadge> |
60 | | - <EuiBadge |
61 | | - @color={{if (eq this.gutterSize 'm') 'primary'}} |
62 | | - @onClick={{set this 'gutterSize' 'm'}} |
63 | | - >medium</EuiBadge> |
64 | | - </div> |
65 | | - <div> |
66 | | - <EuiText>Max width</EuiText> |
67 | | - <EuiBadge |
68 | | - @color={{if (eq this.maxWidthType 'bool') 'primary'}} |
69 | | - @onClick={{pipe |
70 | | - (set this 'maxWidthType' 'bool') |
71 | | - (set this 'maxWidth' false) |
72 | | - }} |
73 | | - > |
74 | | - boolean |
75 | | - </EuiBadge> |
76 | | - <EuiBadge |
77 | | - @color={{if (eq this.maxWidthType 'num') 'primary'}} |
78 | | - @onClick={{pipe |
79 | | - (set this 'maxWidthType' 'num') |
80 | | - (set this 'maxWidth' 400) |
81 | | - }} |
82 | | - > |
83 | | - number |
84 | | - </EuiBadge> |
85 | | - <EuiBadge |
86 | | - @color={{if (eq this.maxWidthType 'string') 'primary'}} |
87 | | - @onClick={{pipe |
88 | | - (set this 'maxWidthType' 'string') |
89 | | - (set this 'maxWidth' '') |
90 | | - }} |
91 | | - > |
92 | | - string |
93 | | - </EuiBadge> |
94 | | - </div> |
95 | | - <div> |
96 | | - {{#if (eq this.maxWidthType 'bool')}} |
97 | | - <Input |
98 | | - @type='checkbox' |
99 | | - @checked={{this.maxWidth}} |
100 | | - name='maxwidth' |
101 | | - /> |
102 | | - <label for='maxwidth'>{{this.maxWidth}}</label> |
103 | | - {{else if (eq this.maxWidthType 'num')}} |
104 | | - <label for='maxwidth'>Enter value</label> |
105 | | - <input |
106 | | - type='number' |
107 | | - value={{this.maxWidth}} |
108 | | - {{on 'input' this.parseToNum}} |
109 | | - name='maxwidth' |
110 | | - /> |
111 | | - {{else}} |
112 | | - <label for='maxwidth'>Enter value</label> |
113 | | - <Input @value={{this.maxWidth}} name='maxwidth' /> |
114 | | - {{/if}} |
115 | | - </div> |
116 | | - </EuiFlexItem> |
117 | | - <EuiFlexItem> |
118 | | - <EuiTitle @size='xs'>First Item</EuiTitle> |
119 | | - <div> |
120 | | - <Input @type='checkbox' @checked={{this.useHref}} name='useHref' /> |
121 | | - <label for='useHref'>use Href</label> |
122 | | - </div> |
123 | | - <div> |
124 | | - <Input |
125 | | - @type='checkbox' |
126 | | - @checked={{this.useOnClick}} |
127 | | - name='useOnClick' |
128 | | - /> |
129 | | - <label for='useOnClick'>use onClick</label> |
130 | | - </div> |
131 | | - <div> |
132 | | - <Input @type='checkbox' @checked={{this.isActive}} name='isActive' /> |
133 | | - <label for='isActive'>isActive</label> |
134 | | - </div> |
135 | | - <div> |
136 | | - <Input |
137 | | - @type='checkbox' |
138 | | - @checked={{this.isDisabled}} |
139 | | - name='isDisabled' |
140 | | - /> |
141 | | - <label for='isDisabled'>isDisabled</label> |
142 | | - </div> |
143 | | - <div> |
144 | | - <Input @type='checkbox' @checked={{this.wrapText}} name='wrapText' /> |
145 | | - <label for='wrapText'>wrapText</label> |
146 | | - </div> |
147 | | - <div> |
148 | | - <EuiText>Size</EuiText> |
149 | | - <EuiBadge |
150 | | - @color={{if (eq this.size 'xs') 'primary'}} |
151 | | - @onClick={{set this 'size' 'xs'}} |
152 | | - >extra small</EuiBadge> |
153 | | - <EuiBadge |
154 | | - @color={{if (eq this.size 's') 'primary'}} |
155 | | - @onClick={{set this 'size' 's'}} |
156 | | - >small</EuiBadge> |
157 | | - <EuiBadge |
158 | | - @color={{if (eq this.size 'm') 'primary'}} |
159 | | - @onClick={{set this 'size' 'm'}} |
160 | | - >medium</EuiBadge> |
161 | | - <EuiBadge |
162 | | - @color={{if (eq this.size 'l') 'primary'}} |
163 | | - @onClick={{set this 'size' 'l'}} |
164 | | - >large</EuiBadge> |
165 | | - </div> |
166 | | - <div> |
167 | | - <EuiText>Color</EuiText> |
168 | | - <EuiBadge |
169 | | - @color={{if (eq this.color 'inherit') 'primary'}} |
170 | | - @onClick={{set this 'color' 'inherit'}} |
171 | | - >inherit</EuiBadge> |
172 | | - <EuiBadge |
173 | | - @color={{if (eq this.color 'text') 'primary'}} |
174 | | - @onClick={{set this 'color' 'text'}} |
175 | | - >text</EuiBadge> |
176 | | - <EuiBadge |
177 | | - @color={{if (eq this.color 'subdued') 'primary'}} |
178 | | - @onClick={{set this 'color' 'subdued'}} |
179 | | - >subdued</EuiBadge> |
180 | | - <EuiBadge |
181 | | - @color={{if (eq this.color 'ghost') 'primary'}} |
182 | | - @onClick={{set this 'color' 'ghost'}} |
183 | | - >ghost</EuiBadge> |
184 | | - <EuiBadge |
185 | | - @color={{if (eq this.color 'primary') 'primary'}} |
186 | | - @onClick={{set this 'color' 'primary'}} |
187 | | - >primary</EuiBadge> |
188 | | - </div> |
189 | | - <div> |
190 | | - <Input |
191 | | - @type='checkbox' |
192 | | - @checked={{this.useIconType}} |
193 | | - name='useIconType' |
194 | | - /> |
195 | | - <label for='useIconType'>use iconType</label> |
196 | | - </div> |
| 59 | +
|
197 | 60 | </EuiFlexItem> |
198 | 61 | </EuiFlexGroup> |
199 | 62 | </EuiFlexItem> |
|
0 commit comments