File tree 2 files changed +18
-27
lines changed
2 files changed +18
-27
lines changed Original file line number Diff line number Diff line change 2
2
Several select components with a variety of setups and API interaction.
3
3
</ app-page-header >
4
4
5
- < br />
6
- < br />
7
- < br />
8
- < br />
9
- < br />
10
- < br />
11
- < br />
12
- < br />
13
- < br />
14
- < br />
15
- < br />
16
- < br />
17
- < br />
18
- < br />
19
- < br />
20
- < br />
21
- < br />
22
- < br />
23
- < br />
24
- < br />
25
- < br />
26
- < br />
27
- < br />
28
- < br />
29
- < br />
30
- < br />
31
-
32
5
< div class ="sampleWrapper ">
33
6
< h4 class ="sample-title "> Select with ngModel, set items OnInit</ h4 >
7
+ < div class ="sample-actions ">
8
+ < button igxButton ="raised " (click) ="btnAddBr() "> + white space</ button >
9
+ < button igxButton ="raised " (click) ="btnRemoveBr() "> - white space</ button >
10
+ </ div >
34
11
< igx-select #displayDensitySelect
35
12
[required] ="true "
36
13
[placeholder] ="'Pick One' "
Original file line number Diff line number Diff line change @@ -155,4 +155,18 @@ export class SelectSampleComponent implements OnInit {
155
155
headerFootedClick ( event ) {
156
156
// console.log('Header/Footer clicked', event);
157
157
}
158
+
159
+ btnAddBr ( ) {
160
+ const brContainer = document . getElementsByClassName ( 'sampleWrapper' ) [ 0 ] ;
161
+ const br = document . createElement ( 'br' ) ;
162
+ brContainer . prepend ( br ) ;
163
+ }
164
+
165
+ btnRemoveBr ( ) {
166
+ const brContainer = document . getElementsByClassName ( 'sampleWrapper' ) [ 0 ] ;
167
+ const firstEl = brContainer . firstElementChild ;
168
+ if ( firstEl . tagName === 'BR' ) {
169
+ brContainer . removeChild ( firstEl ) ;
170
+ }
171
+ }
158
172
}
You can’t perform that action at this time.
0 commit comments