I know that we can get ID after its created, but I need a Event for created,
For Eg : I want to animate that component when its created.
So we should wait for Yusufâs reply before doing a discussion.
Ok i got your point but just check whether this what u wanna create or not?
- Should i create a guide on how to create an animated list
- No, No need
0 voters
Example is here
Yes I can add, but I donât think it would be useful as the extension is synchronous instead of asynchronous. So firstly I need to make the extension to work asynchronously.
Because when you add other blocks below the Create block, they wonât be executed until Create block finishes creating the component.
Yes, this may sound terrible, but synchronous tasks have their own benefits anyway. But I can try to add an optional property to work asynchronously or not.
Here is an image to learn about synchronous and asynchronous.
Yes, I need this.
Yes, It will be better.
Suppose I have set some properties after the create block, then what will happen in that case.
Will the event trigger after the properties have been applied or before ?
Letâs suppose I made this extension work asynchronous and added a when ComponentCreated event, so;
Also, I donât see any reason to make this extension asynchronously, because components are already created in milliseconds. (Well, a lot of components, means a lot of time) It doesnât take a lot of time unlike how Web component takes time while sending and receiving data.
I think the main reason for @themaayur is he wants to get the ID after he created the component. But I donât know why he needs that too.
Then I can change the socket type of Create block, so Create block can return the value, BUT it will be an important decision, as people will need to change the blocks to new ones.
Maybe add a new block just for that (I donât anything about aix/java, so donât blame at me )
But adding the same block twice may confuse the users As I said it will be an important decision I think, so I should not take any action without a lot of feedback
Maybe name the new block as CreateWithReturnID or sth like that
There is a lot to do with it. Like animate it, or register something on components created ar more that depends on your usage.
So whatâs do you think ?
But why you need to get the ID? Didnât you already have that?
Or alternatively, use this block to get the last ID of component that you created previously.
I have a horizontal arrangement in which a textbox is there, I want to create a dynamic image but which side will the image create, to the right of the textbox or to the left of the textbox?
it will be created to the right of textbox
And if I want it to be created on the left side