[AAE-10280] Storybook stories for Sorting Picker component (#7773)

* Added Output types to descriptions

* [AAE-10280] Storybook stories for Sorting Picker component
This commit is contained in:
Radosław Terelak
2022-09-12 15:51:49 +02:00
committed by GitHub
parent 48d71c5397
commit d9ddd12e49
11 changed files with 198 additions and 10 deletions

View File

@@ -33,6 +33,13 @@ export default {
]
})
],
parameters: {
docs: {
description: {
component: 'Displays a list of comments from users involved in a specified task or node'
}
}
},
argTypes: {
comments: {
control: 'object',
@@ -43,8 +50,11 @@ export default {
},
clickRow: {
action: 'clickRow',
description: 'Emitted when the user clicks on one of the comment rows.',
table: { category: 'Actions' }
description: 'Emitted when the user clicks on one of the comment rows',
table: {
category: 'Actions',
type: { summary: 'EventEmitter <CommentModel>' }
}
}
}
} as Meta;

View File

@@ -37,6 +37,14 @@ export default {
]
})
],
parameters: {
docs: {
description: {
component: `Displays comments from users involved in a specified task or node.
Allows an involved user to add a comment to a task or a node.`
}
}
},
argTypes: {
comments: {
control: 'object',
@@ -70,8 +78,11 @@ export default {
},
error: {
action: 'error',
description: 'Emitted when an error occurs while displaying/adding a comment.',
table: { category: 'Actions' }
description: 'Emitted when an error occurs while displaying/adding a comment',
table: {
category: 'Actions',
type: { summary: 'EventEmitter <any>' }
}
}
}
} as Meta;