How to copy and share botton work in dynamic component
…
See my app image…
I hope that two components, cop and share are made up of button with id copy or share or whatever else along with index
When any button clicked
If the component is dynamic
Get id of the clicked component
If this id contains copy
Then
//do the blocks for copy
Else if contains share
//Do the blocks for share
hi thanks dear… I know you can help me I saw your old post and you are genius … but I never understand your comment my app created with dynamic component with using two Bottom with like and share…can you help me for details information…
While creating that two buttons you have used id with specific id say copy_{num} and for paste button pas_{num}
Since they are buttons we should use the event block called When any button clicked
This will be triggered for all the buttons(including dynamic & native) so now we need to design blocks only for that copy amd paste button. This is possible once you get dynamic button id eg., copy_3 or pas_3.
So adding one if logic
If is dynamic get component
This will differentiate the dynamic button with native button.
Now get the clicked dynamic button id.
If the button id contains text copy
then design code what should do after clicking copy button
Else if the button id contains text pas
then design block what should do
Before that add one notifier button or label button in each case to verify whether all are working properly
Thanks… But if you have any image of the block share please…