Skip to content

Releases: xsanisty/calx.js

Hotfix Release

19 Feb 13:20
Compare
Choose a tag to compare
  • Fix SUMIF and SUMIFS behaviour
  • Remove domain protection on sample js file, so it can be uploaded everywhere

Hotfix Release

20 Dec 01:50
Compare
Choose a tag to compare

This release come with several improvement:

  • Fix vlookup behaviour to comply with excel's vlookup
  • Add new feature to register cell data without creating html element of that cell
<form id="calx">
    <input data-cell="B1">
</form>

initialize calx with hidden cell

$('#calx').calx({
    data : {
         'A1' : { value: 100 },
         'A2' : { value: 200 },
         'A3' : { value: 150 },
         'A4' : { value: 50 },
         'B1' : { formula: 'SUM(A1:A4)' },
    }
});

and B1's value will 500

Fix calx refresh

15 Dec 00:42
Compare
Choose a tag to compare

Fix calx refresh behaviour

Fix SUMPRODUCT formula

28 May 12:43
Compare
Choose a tag to compare

Fix bug on SUMPRODUCT formula which always return 0

Fix registerVariable

25 Apr 03:17
Compare
Choose a tag to compare

This release fix registerVariable behaviour, when registered without selector, it will be registered as global, and when registered into specific sheet, it will recalculate the sheet

Add new data config key

14 Apr 01:36
Compare
Choose a tag to compare

This release introduce new data config key, enable you to strip the data-formula and data-format attribute out of your html.

For example

<form id="calx">
    <input data-cell="A1">
    <input data-cell="A2">
    <input data-cell="A3">
</form>
<script>
    $('#calx').calx({
        data : {
            A1 : { value : 200 , format : '$ 0,0' },
            A1 : { value : '50%' , format : '0 %' },
            A3 : { formula : 'A1-(A1*A2)' }
        }
    });
</script>

Fix cell initialization

23 Mar 11:59
Compare
Choose a tag to compare

Fix the cell initialization behavior: for cell with data-format attribute and non-empty numeric value, it will render the formatted value on initialization

Add new setValue method

20 Mar 01:06
Compare
Choose a tag to compare

This release introduce new single calx method named setValue to set the cell value of the selected sheet. You can now set the cell value via calx method

$('#sheet').calx('setValue', 'B1', 100)

And it will act as how $('#sheet').find('[data-cell=B1]').val(100) works, but also update the internal reference, and calculate the sheet if autoCalculate is enabled.

Fix parser error

18 Feb 15:13
Compare
Choose a tag to compare

Previously A1>A2 raise a parser error, but A1 > A2 (with the surrounding whitespace around the >) works fine.

This release fix those parser error, and A1>A2 notation should not raise an error anymore

Hotfix release

22 Jan 17:20
Compare
Choose a tag to compare

Fix COUNTIF and COUNTIFS function