Changing the data type of reusable elements and making it dynamic

Hey everyone,
I hope what I am trying to achieve is possible, or perhaps there is a better way of doing so..
I created a reusable element that is essentially a button that opens up the groupfocus (the purpose was to have the GF resize with the button).

Now that I achieved this I was trying to make this reusable element so I can use it accross the app without needing to copy and create a lot of reusable element of the same action just with a different data that feeds the RE.

for example I wanted to have one RE that shows in the GF the option set for ‘currency’ and then on another place in the app to use the same RE but instead of showing ‘currency’ I want to display ‘users’.

How can I make this logic happen, also how do I reference it on the actual ‘edit reusable element’ properties i.e once the current cell is clicked it will display in the button description.

Many thanks to any creative mind that can solve this!!!

Just define a Property (text) for your RE.

Pass the text you want as the Property value when placing the RE in the page.

You can reference the Property value from within the RE so that its content is shown.

Yeah one of the complex problems, you can’t attach groupfocus to a rg element, so you will create button reusable and a rg reusable. Button reusable will have groupfocus, and an html css, css will adjust the dynamic width, reusable button will have index element. To be really dynamic you need to reference elements as seperate ID’s so group_focus element it must be #group_focus(dynamic value here, reusable_button’s index, and you needd to apply that id to css. Than you put that button to reusable and set the buttons index = current cells index. This is 80% of your problem solved, if you are a beginner don’t do this, you can’t

This is the other 20%

Thank you both!
I have the part you mentioned 80% already completed and working great just need I guess to add the 20% remaining of text property referencing - THANK YOU.

I will update how did it go…

Wow, you really did 80% part ? If that to be true in 7 hours as a beginner you wouldn’t ask the other 20% it is much easier

It was actually already made before I wrote the post, I guess after so many hours my brain needed a break.

I got it to work perfectly now, I set it up so the data source is through the property of the RE I did the same for the icon that is attached to it so I created option set of icons and then I just select through the list while the option set is containing the name of the icon and generic label, same for the placeholder so based on what I am creating it can be modified quick for easy placement.

Now I can have multiple RE in the same page as they are separated with their own ID and custom states to store each value and present it instead of the placeholder.

I really appreciate the help - THANK YOU!!!

You are a chatbot no ?

Haha what do you mean a chatbot?
I got stuck and asked for some help..

This topic was automatically closed after 70 days. New replies are no longer allowed.