Component w/ Context Properties

Pat Vachon
Pat Vachon ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
edited June 25, 2020 in Ideas
I often come across use cases where I'd like to use the number of rows in a specified component which has context. ie. in a drawer or popup/modal.

As an example, in a modal I'd like to create section headers above tables which show the # of rows in the below table.

Additionally, I'd like to conditionally render a Text component saying "No notes" instead of an empty table.

4 votes

Awaiting Review ยท Last Updated


  • Matt Brown
    Matt Brown ๐Ÿ› ๏ธ ๏ปฟ
    edited June 25, 2020
    Let me make sure I understand - are you saying that you'd want something like the {{$}} global merge, but specifically for contextual elements like modals, drawers, and deck cards?
  • Pat Vachon
    Pat Vachon ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
    edited June 15, 2020
  • Pat Vachon
    Pat Vachon ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž


  • Pat Vachon
    Pat Vachon ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž

    Someone please tell me why this hasn't been implemented. Makes no sense to use a snippet without the context. I'd love to use 1 snippet for the same purpose on many many buttons, but nooooo! ERG!!!


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!