Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hide the card #12

Open
ben1628 opened this issue Dec 16, 2019 · 1 comment
Open

Hide the card #12

ben1628 opened this issue Dec 16, 2019 · 1 comment

Comments

@ben1628
Copy link

ben1628 commented Dec 16, 2019

In the WeatherData CardCollection situation. When a user click a button and create a OnSubmitAction, Can I hide all other cards except the one that the user is on? That is collapse the stack of card to just show one.

@mikoskinen
Copy link
Owner

Interesting question. Do you want to hide the cards completely or "collapse" them in the Adaptive Cards' terms, meaning the ShowCard action?

If the first one, maybe you could wrap the CardCollection inside a condition:

if (SelectedCard == null)
{
	// If nothing selected, show all the cards
	<CardCollection...
}
else
{
	// If card is selected, only show that one
	<AdaptiveCard
}

And then use the OnSubmitAction to set the SelectedCard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants