Thank you!
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
Quite amazing your work…
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
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
Can I have an aia for showing a csv file with unknown columns number ?
bcs I changed the name of the extension to CompCreator. DCLite is a bit of a misnomer.
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
i have seen same in other post/community.
use label to display the data.
when any label clicked,
get its col and row
popup a input dialogue, ask user to write the new value.
when input finish
save/update data in the csv
display new data on the label
Why labels ? I would edit the cells in place
is it possible to use HorizontalScrollArrangement ?
How can I automatize colums inserting ?
possible and yes.
pls explain in detail what you want to achieve? or make one drawing?
- show a table from csv file with many colums with horizontal scrolling
- edit cells content in place
- save chenges to csv file
Thank you very much, I can see the cells but not their content, please check my aia
CSV_1.aia (14.4 KB)
it’s always the best to post your code photo here than upload aia file, if the code is not that much.
since others need to download this aia, upload to my project, that takes a long time.