Unfortunately no! Never came in mind! Thanks for the clue @Boban
Yes, when you clear ids the set global variable Id to 0
How can I set Background Color of a Button using .Schema block.
I already understand the property name would be âBackgroundColorâ. But what will be the parameters?
Colour code of that colour.
In which format? Hex code as string? For example âFFFFFFâ as white? or â000000â as black?
The color code of Kodular. To calculate that, you can do it manually:
Or use Kodular colour unities
the block hex to int, and use Do it
to get the code.
Thanks for information.
But read my question carefully. I have asked⊠how can implement it in template of .Schema block of Dynamic Component Extension?
As I said, get the result. It should be a integer.
Example:
OK⊠Let me try it.
Thanks again.
Maybe you should create a seperate block for last created id
YesâŠdone. As you said I followed same procedure.
Many many thanks for help.
Its already there
No i mean the last created id like seperate id for last created component and a separate ID for last used id
Can you explain more? I didnât understand what you mean
I am having another problem while generating spinner dynamically. It got fired the event âAfter Selectionâ while dynamically creating that.
But while I am creating spinner statically it is not.
Is there any solution?
The extension doesnât execute any event of the components. So the issue is about Spinner component probably, however, you can add an âifâ block to check if the selection is invalid.
I also thinking same way, but what will be the âIfâ condition? so that I can identify between the event fired at initiation and actual event?
Maybe something like this:
This will never work for me⊠because all spinner have text in first element. In natural âafter selectingâ and âinitiationâ event it return first value.
Maybe you can add another first item named âSelect one from listâŠâ to the all spinners.