OfficeDev / microsoft-teams-ui-component-library

Component library enhanced experiences styled for use in Microsoft Teams custom applications.
MIT License
127 stars 31 forks source link

Dashboard hide/show #67

Closed thure closed 3 years ago

thure commented 3 years ago

Open in Storybook ↗️

Spec in Figma ↗️

This PR implements the new hide/show interaction flow for Dashboard widgets. This implementation introduces the idea of storing user preferences locally. Developers can set initial preferences through Dashboard’s props, and specify a key by which preferences should be stored locally. In any case, the developer will receive an onInteraction payload any time the user updates their preferences for a Dashboard instance.