File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
packages/main/src/webComponents/ComboBox Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ All available filter types controlled by the `filter` prop.
31
31
32
32
<Canvas of = { ComponentStories .FilterTypes } />
33
33
34
+ ## ComboBox with ComboBoxItemGroups
35
+
36
+ <Canvas of = { ComponentStories .WithGroups } />
37
+
34
38
<Markdown >{ SubcomponentsSection } </Markdown >
35
39
36
40
## ComboBoxItem
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import employeeIcon from '@ui5/webcomponents-icons/dist/employee.js';
4
4
import { FlexBox } from '../../components/FlexBox/index.js' ;
5
5
import { FlexBoxDirection , FlexBoxJustifyContent } from '../../enums/index.js' ;
6
6
import { ComboBoxItem } from '../ComboBoxItem/index.js' ;
7
+ import { ComboBoxItemGroup } from '../ComboBoxItemGroup/index.js' ;
7
8
import { Icon } from '../Icon/index.js' ;
8
9
import { Label } from '../Label/index.js' ;
9
10
import { ComboBox } from './index.js' ;
@@ -41,6 +42,24 @@ export const Default: Story = {
41
42
}
42
43
} ;
43
44
45
+ export const WithGroups : Story = {
46
+ render ( args ) {
47
+ return (
48
+ < ComboBox { ...args } >
49
+ < ComboBoxItemGroup headerText = "Group 1" >
50
+ < ComboBoxItem text = "ComboBox Entry 1" />
51
+ < ComboBoxItem text = "ComboBox Entry 2" />
52
+ </ ComboBoxItemGroup >
53
+ < ComboBoxItemGroup headerText = "Group 2" >
54
+ < ComboBoxItem text = "ComboBox Entry 3" />
55
+ < ComboBoxItem text = "ComboBox Entry 4" />
56
+ < ComboBoxItem text = "ComboBox Entry 5" />
57
+ </ ComboBoxItemGroup >
58
+ </ ComboBox >
59
+ ) ;
60
+ }
61
+ } ;
62
+
44
63
export const FilterTypes : Story = {
45
64
render : ( ) => {
46
65
return (
You can’t perform that action at this time.
0 commit comments