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

Examples with setVariable API:

  1. chalkit.setVariable("value",10);//double quote
  2. chalkit.setVariable('value',20);//simple quote
  3. val ="value"; chalkit.setVariable(val,30);//string variable
  4. val =dataNodes["value"]+1; chalkit.setVariable("value",val);//value from dataNode
  5. chalkit.setVariable("value",dataNodes["value"]+1); //formula in values
  6. chalkit.setVariable( "value" , 60 );//test on white space
  7. val ="valu"; chalkit.setVariable(val+"e",70);//concact names
  8. chalkit.setVariable("",80);//provoke error and notify it
  9. chalkit.setVarible("value",10);//syntax error
  10. xDashApi.setVariable("value",10);//warning about a deprecated fct
bengaid commented 8 months ago

Great Abir ! Seems complete for me.