Skip to content

Commit 3ccf87d

Browse files
committed
swapped examples order
1 parent d96b16c commit 3ccf87d

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

projects/bootstrap/src/lib/components/input-typeahead/input-typeahead.examples.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
11
import { UIModel, ComponentExample } from '@ngx-dynamic-components/core';
22
import { InputTypeaheadProperties } from './input-typeahead.component';
33

4-
export const example1: ComponentExample<UIModel<InputTypeaheadProperties>> = {
4+
export const example2: ComponentExample<UIModel<InputTypeaheadProperties>> = {
55
uiModel: `
66
<div class="flex-column">
77
<div class="form-group">
88
<label class="col-form-label" width="60px">Type text</label>
9-
<input-typeahead width="300px" binding="$.selectedOption">
10-
<option value="o1">Option 1</option>
11-
<option value="o2">Option 2</option>
12-
</input-typeahead>
9+
<input-typeahead width="300px" itemsSource="$.list" binding="$.selected"></input-typeahead>
1310
</div>
1411
</div>
1512
`,
16-
dataModel: {},
17-
title: 'Static dropdown declaration',
13+
dataModel: {
14+
list: [{ label: 'Data 1', value: 'd1' }, { label: 'Data 2', value: 'd2' }]
15+
},
16+
title: 'Dropdown options binded to dataModel',
1817
};
1918

20-
export const example2: ComponentExample<UIModel<InputTypeaheadProperties>> = {
19+
export const example3: ComponentExample<UIModel<InputTypeaheadProperties>> = {
2120
uiModel: `
2221
<div class="flex-column">
2322
<div class="form-group">
2423
<label class="col-form-label" width="60px">Type text</label>
25-
<input-typeahead width="300px" itemsSource="$.list" binding="$.selected"></input-typeahead>
24+
<input-typeahead width="300px" binding="$.selectedOption">
25+
<option value="o1">Option 1</option>
26+
<option value="o2">Option 2</option>
27+
</input-typeahead>
2628
</div>
2729
</div>
2830
`,
29-
dataModel: {
30-
list: [{ label: 'Data 1', value: 'd1' }, { label: 'Data 2', value: 'd2' }]
31-
},
32-
title: 'Dropdown options binded to dataModel',
31+
dataModel: {},
32+
title: 'Static dropdown declaration',
3333
};
3434

35-
export const example3: ComponentExample<UIModel<InputTypeaheadProperties>> = {
35+
export const example1: ComponentExample<UIModel<InputTypeaheadProperties>> = {
3636
uiModel: `
3737
<div class="flex-column">
3838
<div class="form-group">
@@ -97,4 +97,4 @@ export const example4: ComponentExample<UIModel<InputTypeaheadProperties>> = {
9797
title: 'drop-down with typeahead and debounceTime',
9898
};
9999

100-
export default [example1, example2, example4];
100+
export default [example4, example1, example2];

0 commit comments

Comments
 (0)