Component w/ Context Properties

Pat VachonPat 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.

image
2
2 votes

Awaiting Review ยท Last Updated

Comments

  • Matt BrownMatt Brown โœญโœญโœญโœญ
    edited June 25, 2020
    Let me make sure I understand - are you saying that you'd want something like the {{$Model.data.length}} global merge, but specifically for contextual elements like modals, drawers, and deck cards?
  • Pat VachonPat Vachon ๐Ÿ’Ž๐Ÿ’Ž๐Ÿ’Ž
    edited June 15, 2020
    Correct.
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!