OfficeDev / microsoft-teams-ui-component-library

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

Empty state integrations #48

Closed thure closed 3 years ago

thure commented 3 years ago

This PR makes it easier for developers to supply a configuration for a Communication component to render in the primary surface if there is no content to display.

Currently only the List and Board components support this addition: the configuration for these components is extended to include an optional emptyState prop, which is the same as Communication’s props.

Communication was also adjusted to support multilingual TTextObject content.

Open in Storybook

thure commented 3 years ago

Transitioned back to draft since Board HVC needs integration as well.

thure commented 3 years ago

To do: use default content when emptyState is not supplied; never render empty Table.

thure commented 3 years ago

This is now ready for review again.