Kevinkun
(kevinkun)
August 29, 2021, 1:54pm
#1
NEWEST V3 HERE:
Thanks @TimAi2 's feedback, V3 is here
https://www.kevinkun.cn/compcreator.html
update
1: set missing property in any Component drawer.
2. change name to CompCreator.
All blocks:
[2022-01-02_225920]
[2022-01-05_213915]
tag: String.
it can be following 3 type:
property name of the component: this can set the build-in perperty;
‘index’: this can set the order of the component;
any other string: a custom property attached to this component
Thanks for yusufcihan ’s wonderful Dynamic Components extension, we can create UI dynamicly as our wish.
This is a lite version of DynamicComponents extension, it create and return an component directly, you may save it to a variable, or into a list or a dictionary for later use.
BLOCKS
only 2 blocks, no ID needed.
DEMO
how to create a card view:
28 Likes
Wow, seems to be very simple… Hmmm. Let me try it … You are Great!!! . Very Handy
72erdelyi
(3dmixer)
August 30, 2021, 3:17am
#4
which is great but how can you identify for example which button was clicked without an id?
Kevinkun
(kevinkun)
August 30, 2021, 3:21am
#5
You can save the component in a list/dictionary
when some button is clicked, check if it’s in the list/dictionary
2 Likes
Dragon_Ball
(DOMINIC CHAN ZHENG YONG RIS)
November 1, 2021, 5:34am
#7
I can’t actually find the new blocks created by the extension
Check whether you made the cardview or arrangement visible or not. First component must be visible I hope
Instead of using component just type the name of the component, it will be good to use
Kevinkun
(kevinkun)
November 1, 2021, 6:01am
#9
show your blocks code pls
What about button click ? Please me give an example , please
Kevinkun
(kevinkun)
November 18, 2021, 7:42am
#12
v2 UPDATE
New blocks:
Set function:
Attach a <tag,value> data on some component.
tag: any String
value: any Object, like String, Number, List, Dictionay, even component;
This can be used to componnets even not created dynamicly.
Get function:
retrieve the data from some component.
return blank string if no such component or no such tag.
Example:
Demo aia:
DCLITE.aia (13.6 KB)
aix:
pls down load v3
9 Likes
system
(system)
Closed
December 18, 2021, 8:24am
#14
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
Kevinkun
(kevinkun)
January 2, 2022, 3:00pm
#16
how do I set the text alignment property of a label/textbox, using DCLite
Thanks @TimAi2 's feedback, V3 is here
https://www.kevinkun.cn/compcreator
update
1: set missing property in any Component drawer.
2. change name to CompCreator.
All blocks:
tag: String.
it can be following 3 type:
property name of the component: this can set the build-in perperty;
‘index’: this can set the order of the component;
any other string: a custom property attached to this component
3 Likes
patel
(Andrea)
January 3, 2022, 8:39am
#17
Can I have an aia for showing a csv file with unknown columns number ?
Alpha_S
(Alpha S)
January 3, 2022, 9:28am
#18
@Kevinkun why change the topic compcreator it waz dclite
Kevinkun
(kevinkun)
January 3, 2022, 11:30am
#19
bcs I changed the name of the extension to CompCreator. DCLite is a bit of a misnomer.
give a demo csv pls
patel
(Andrea)
January 3, 2022, 4:35pm
#20
Kevinkun:
give a demo csv pls
I’m sorry, I can’t attach csv file
Name,Num1,Num2,Num3
aaa,111,1111111,12
bbb,222,2222222,22
ccc,333,3333333,32
ddd,444,4444444,42
is it possible to use HorizontalScrollArrangement ?
My goal is a csv editor, see below my current blocks