issues
search
ifpen
/
chalk-it
Drag-and-drop Python webapps
https://ifpen.github.io/chalk-it/
Apache License 2.0
49
stars
7
forks
source link
improve chalkit api
#158
Closed
abirEF
closed
8 months ago
abirEF
commented
8 months ago
improve parse: simple quote, double quote, handle blank space,...
ignore api when inside a comment or string
handle setVariable list during execution and not during parse to be more effective (take into account current valid condition)
improve its use: with direct access, through variable, or through direct formula
Examples with setVariable API:
chalkit.setVariable("value",10);//double quote
chalkit.setVariable('value',20);//simple quote
val ="value"; chalkit.setVariable(
val
,30);//string variable
val =dataNodes["value"]+1; chalkit.setVariable("value",
val
);//value from dataNode
chalkit.setVariable("value",
dataNodes["value"]+1
); //formula in values
chalkit.setVariable( "value" , 60 );//test on white space
val ="valu"; chalkit.setVariable(
val+"e
",70);//concact names
chalkit.setVariable(
""
,80);//provoke error and notify it
chalkit.
setVarible
("value",10);//syntax error
xDashApi
.setVariable("value",10);//warning about a deprecated fct
bengaid
commented
8 months ago
Great Abir ! Seems complete for me.
Examples with setVariable API: