mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-16 10:51:06 +00:00
feat(code-snippet): dispatch "expand" and "collapse" events (#1291)
* test(code-snippet): simply assertions * feat(code-snippet): dispatch "expand," "collapse" events * Run "yarn build:docs" * test(code-snippet): assert events
This commit is contained in:
parent
e3f72e6412
commit
1454eeae19
5 changed files with 37 additions and 56 deletions
|
@ -563,14 +563,16 @@ None.
|
|||
|
||||
### Events
|
||||
|
||||
| Event name | Type | Detail |
|
||||
| :----------- | :--------- | :----- |
|
||||
| click | forwarded | -- |
|
||||
| mouseover | forwarded | -- |
|
||||
| mouseenter | forwarded | -- |
|
||||
| mouseleave | forwarded | -- |
|
||||
| animationend | forwarded | -- |
|
||||
| copy | dispatched | -- |
|
||||
| Event name | Type | Detail |
|
||||
| :----------- | :--------- | :---------------- |
|
||||
| expand | dispatched | <code>null</code> |
|
||||
| collapse | dispatched | <code>null</code> |
|
||||
| click | forwarded | -- |
|
||||
| mouseover | forwarded | -- |
|
||||
| mouseenter | forwarded | -- |
|
||||
| mouseleave | forwarded | -- |
|
||||
| animationend | forwarded | -- |
|
||||
| copy | dispatched | -- |
|
||||
|
||||
## `CodeSnippetSkeleton`
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue