Is it possible to use RuleJs with array or object data source?

Sorry if it’s too simple or I’m missing something in documentations and asking here,
I was wondering am i able to use only RuleJs without handsontable and work with objects ? while having functionalities like selecting range and applying formulas !

For example this object from tutorial :

var data = [
      [
      [10, 11, 12, 13, 15, 16],
      ['=SUM(B1:B2)', 11, 12, 13, 15, 16],
      [10, 11, 12, 13, 15, 16],
      [10, 11, 12, 13, 15, 16],
      [10, 11, 12, 13, 15, 16]
      ] 

I am trying to do something like this :

var rules = new ruleJS(hiddenData);
rules.init();
rules.parse('SUM(A1:A2)'); 

My problem is i don’t want to draw table in document , i just want to work with object/array like excel in code !

Thanks in advance

Hi @Roger
It it possible. Here’s a demo made by @swistach https://jsfiddle.net/w4kvr6tp/

1 Like

@aleksandra_budnik You guys are awesome , that’s exactly what i needed Thanks :heart:

You’re welcome Roger.

Have a nice day!