-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDropdownlist.stories.ts
50 lines (44 loc) · 1.19 KB
/
Dropdownlist.stories.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import {
type Meta,
type StoryObj,
moduleMetadata,
applicationConfig,
} from '@storybook/angular';
import {
DropDownListComponent,
DropDownListModule,
} from '@progress/kendo-angular-dropdowns';
import { provideAnimations } from '@angular/platform-browser/animations';
// More on how to set up stories at: https://storybook.js.org/docs/angular/writing-stories/introduction
const meta: Meta<DropDownListComponent> = {
title: 'Kendo/DropDownList',
component: DropDownListComponent,
decorators: [
moduleMetadata({
imports: [DropDownListModule],
}),
applicationConfig({
providers: [provideAnimations()],
}),
],
tags: ['autodocs'],
render: (args: DropDownListComponent) => ({
props: {
...args,
},
}),
};
export default meta;
type Story = StoryObj<DropDownListComponent & {class: string}>;
// More on writing stories with args: https://storybook.js.org/docs/angular/writing-stories/args
export const Normal: Story = {
args: {
data: ['X-Small', 'Small', 'Medium', 'Large', 'X-Large', '2X-Large']
},
};
export const WithClass: Story = {
args: {
data: ['X-Small', 'Small', 'Medium', 'Large', 'X-Large', '2X-Large'],
class: "border"
},
};