Skip to main content
Question

Autolayout in a hugging component

  • October 15, 2024
  • 4 replies
  • 25 views

Maha_Aziz

Hello!
I created this component with a list item text box and a button inside a tooltip
I want to be able to add more list items in an instance of the component depending on the content of the tooltip, but it’s saying that pasting is not allowed in the instance due to the tooltip being a component, so in an instance I can’t copy the list item to add a new line to the list auto-layout
Is there a way to fix this?
The text box, button, and the tooltip with both are all separate components


4 replies

Nellya
  • Power Member
  • 427 replies
  • October 15, 2024

You can add more items in main component and hide/unhide them in instances when it’s needed


Maha_Aziz
  • Author
  • 2 replies
  • October 15, 2024

ok I did this but wanted to make sure there wasn’t a better way to do it, it’s hard to guestimate how many list items we’ll need


Nellya
  • Power Member
  • 427 replies
  • October 15, 2024

Yes, you can’t add or remove anything from component instance, only in main component.

Tooltips usually don’t contains a lot of information, but even if you initially add an insufficient amount, you can always add more later.


Maha_Aziz
  • Author
  • 2 replies
  • October 15, 2024

yeah for this one it would probs be ok but we have a more complicated tooltip that we are working on that currently has a carousel in it (like the user can scroll left and right to go thru the calendar days but it is in a tooltip) so not sure if that’s the best way to do that either, we may need to use a different design pattern


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings