[F/OS] - Dynamic Components Extension (for every component) 2.2.2

:disappointed: Unfortunately no! Never came in mind! Thanks for the clue @Boban :relaxed:

1 Like

Yes, when you clear ids the set global variable Id to 0

1 Like

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.

1 Like

Thanks for information.
But read my question carefully. I have asked
 how can implement it in template of .Schema block of Dynamic Component Extension?

1 Like

As I said, get the result. It should be a integer.
Example:
image

3 Likes

OK
 Let me try it.
Thanks again.

1 Like

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.

1 Like

Its already there image

4 Likes

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:
image

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.