diff --git a/stories/components/todo/todo.html.stories.js b/stories/components/todo/todo.html.stories.js index aaed9d6a8a..5cf5a3af5e 100644 --- a/stories/components/todo/todo.html.stories.js +++ b/stories/components/todo/todo.html.stories.js @@ -29,3 +29,16 @@ export const tasksWithInitialId = () => html` export const ReadOnly = () => html` `; + +export const events = () => html` + + +`; diff --git a/stories/components/todo/todo.react.stories.js b/stories/components/todo/todo.react.stories.js index 5c8507e01a..9d46aa661e 100644 --- a/stories/components/todo/todo.react.stories.js +++ b/stories/components/todo/todo.react.stories.js @@ -24,3 +24,36 @@ export const todos = () => html` ); `; + +export const events = () => html` + + + import { Todo } from '@microsoft/mgt-react'; + + export default () => { + const onUpdated = useCallback((e: CustomEvent) => { + console.log('updated', e); + }); + + const onTemplateRendered = useCallback((e: CustomEvent) => { + console.log('templateRendered', e); + }); + + return ( + + + ); + }; + + +`;