Skylight Docs
Search
K

Showing and hiding cards

Toggling card visibility programmatically in Skylight using adapter
ShowingAndHidingCardsRecipe.zip
3KB
Binary
Showing and Hiding Cards Recipe Application Bundle

What does this recipe include?

The root view of the recipe consists of:
  • a card that toggles the boolean skylight.local.data.isVisible when selected.
  • a card that is bound to an adapter that returns null if skylight.local.data.isVisible is falsy (which hides the card) or an object otherwise (which shows the card)