Download .zip |
Info | Demos | View files (207) | Download .zip | Reputation | Support forum (3) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2018-10-16 (7 months ago) | Not enough user ratings | Total: 263 | All time: 165 This week: 15 |
Version | License | JavaScript version | Categories | |||
jquery-calx 2.0.1 | MIT/X Consortium ... | 1.3 | HTML, jQuery, Math |
Description | Author | |
This is a jQuery plug-in that can calculate form input values based on formulas. |
#jQuery Calx [![Baikal](https://baikal.io/badges/xsanisty/jquery-calx)](https://baikal.io/xsanisty/jquery-calx) [![Join the chat at https://gitter.im/xsanisty/jquery-calx](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/xsanisty/jquery-calx?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) jQuery Calx is an Excel calculation engine and formula parser built as jQuery plugin, it offer spreadsheet ability to process and calculate the formula without bringing table-like spreadsheet interface. In the core of jQuery Calx is formula parser generated using [jison](https://github.com/zaach/jison) which parse and process the formula and set of formulas imported from [formula.js](https://github.com/sutoiku/formula.js). Creating calculation form in html never been easier and simpler than this: ```html <form id="calx_form"> <input data-cell="A1"> <input data-cell="A2"> <input data-cell="A3"> <input data-formula="SUM(A1:A3)"> <input data-formula="AVERAGE(A1:A3)"> <input data-formula="(A1+A2)*A3"> <input data-formula="(A1^2)+(A2^2)+(A3^2)"> </form> <script> $('#calx_form').calx(); </script> ``` If you don't want the formula make your html looks messy, you can move all formula and formatting rule into the js, and leave only `data-cell` attribute. ```html <form id="calx_form"> <input data-cell="A1"> <input data-cell="A2"> <input data-cell="A3"> <input data-cell="B1"> <input data-cell="B2"> <input data-cell="B3"> <input data-cell="B4"> </form> <script> $('#calx_form').calx({ data : { B1 : {format: '$ 0,0', formula: 'SUM(A1:A3)'}, B2 : {format: '0.00', formula: 'AVERAGE(A1:A3)'}, B3 : {formula: 'LOG(A1)*(A2/A3)'}, B4 : {formula: 'MAX(A1:A3)'} } }); </script> ``` You can even completely remove hidden cell that act as proxy or intermediate cell and move it to javascript section ```html <form id="calx_form"> <input data-cell="B4"> </form> <script> $('#calx_form').calx({ data : { B1 : {value: '100'}, B2 : {value: '200'}, B3 : {formula: 'B1+B2'}, B4 : {formula: 'B3^2'} } }); </script> ``` # Installation You can install jQuery Calx by downloading the latest version from this repository, or install it using bower ``` bower install jquery-calx ``` or ``` bower install xsanisty/jquery-calx ``` and load the required script into your html page ```html <!-- the only required dependency --> <script src="jquery.min.js"></script> <!-- required for number formatting only --> <script src="numeral.min.js"></script> <!-- the jquery calx lib --> <script src="jquery-calx-2.2.7.min.js"></script> ``` For detailed documentation, [http://www.xsanisty.com/project/calx2](http://www.xsanisty.com/project/calx2). For jQuery Calx 1.x please visit [http://www.xsanisty.com/project/calx](http://www.xsanisty.com/project/calx) |
Files |
File | Role | Description | ||
---|---|---|---|---|
documentation (2 files, 4 directories) | ||||
js (5 files, 1 directory) | ||||
library (8 files) | ||||
php-build (6 files, 2 directories) | ||||
sample (12 files, 4 directories) | ||||
readme.html | Doc. | documentation | ||
bower.json | Data | Auxiliary data | ||
calx.jquery.json | Data | Auxiliary data | ||
jquery-1.9.1.min.js | Aux. | Auxiliary script | ||
jquery-calx-2.2.8.js | Class | Class source | ||
jquery-calx-2.2.8.min.js | Class | Class source | ||
MIT-license.txt | Doc. | Documentation | ||
README.md | Doc. | Documentation |
Files | / | documentation |
File | Role | Description | ||
---|---|---|---|---|
css (3 files) | ||||
font-awesome (2 directories) | ||||
js (2 files) | ||||
pages (9 files) | ||||
index.html | Doc. | Documentation | ||
index.php | Data | Auxiliary data |
Files | / | documentation | / | css |
File | Role | Description |
---|---|---|
bootstrap.css | Data | Auxiliary data |
sb-admin.css | Data | Auxiliary data |
style.css | Data | Auxiliary data |
Files | / | documentation | / | font-awesome | / | css |
File | Role | Description |
---|---|---|
font-awesome.css | Data | Auxiliary data |
font-awesome.min.css | Data | Auxiliary data |
Files | / | documentation | / | font-awesome | / | fonts |
File | Role | Description |
---|---|---|
fontawesome-webfont.svg | Data | Auxiliary data |
Files | / | documentation | / | js |
File | Role | Description |
---|---|---|
bootstrap.js | Aux. | Auxiliary script |
jquery-1.10.2.js | Aux. | Auxiliary script |
Files | / | documentation | / | pages |
File | Role | Description |
---|---|---|
calx_api.php | Data | Auxiliary data |
cell_api.php | Data | Auxiliary data |
configuration.php | Data | Auxiliary data |
dependencies.php | Data | Auxiliary data |
formatting.php | Data | Auxiliary data |
formula.php | Data | Auxiliary data |
initializing.php | Data | Auxiliary data |
overview.php | Data | Auxiliary data |
sheet_api.php | Data | Auxiliary data |
Files | / | js |
File | Role | Description | ||
---|---|---|---|---|
flot_plugin (14 files) | ||||
jquery.flot.min.js | Aux. | Auxiliary script | ||
jstat.min.js | Aux. | Auxiliary script | ||
moment.min.js | Aux. | Auxiliary script | ||
numeral.min.js | Aux. | Auxiliary script | ||
numeric.min.js | Aux. | Auxiliary script |
Files | / | js | / | flot_plugin |
File | Role | Description |
---|---|---|
jquery.flot.canvas.js | Aux. | Auxiliary script |
jquery.flot.categories.js | Aux. | Auxiliary script |
jquery.flot.crosshair.js | Aux. | Auxiliary script |
jquery.flot.errorbars.js | Aux. | Auxiliary script |
jquery.flot.fillbetween.js | Aux. | Auxiliary script |
jquery.flot.image.js | Aux. | Auxiliary script |
jquery.flot.navigate.js | Aux. | Auxiliary script |
jquery.flot.pie.js | Aux. | Auxiliary script |
jquery.flot.resize.js | Aux. | Auxiliary script |
jquery.flot.selection.js | Aux. | Auxiliary script |
jquery.flot.stack.js | Aux. | Auxiliary script |
jquery.flot.symbol.js | Aux. | Auxiliary script |
jquery.flot.threshold.js | Aux. | Auxiliary script |
jquery.flot.time.js | Aux. | Auxiliary script |
Files | / | library |
File | Role | Description |
---|---|---|
parser-2.0.0-rev-1.jison | Data | Auxiliary data |
parser-2.0.0-rev-2.jison | Data | Auxiliary data |
parser-2.0.0-rev-3.jison | Data | Auxiliary data |
parser-2.0.0-rev-4.jison | Data | Auxiliary data |
parser-rev-2.js | Class | Class source |
parser-rev-3.js | Class | Class source |
parser-rev-4.js | Class | Class source |
parser-rev1.js | Class | Class source |
Files | / | php-build |
File | Role | Description | ||
---|---|---|---|---|
include (10 files, 4 directories) | ||||
vendor (1 file, 2 directories) | ||||
build | Data | Auxiliary data | ||
build-sample | Data | Auxiliary data | ||
calx-build-sample.php | Data | Auxiliary data | ||
calx-build.php | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data |
Files | / | php-build | / | include |
File | Role | Description | ||
---|---|---|---|---|
calx (14 files) | ||||
cell (31 files) | ||||
formula (13 files) | ||||
sheet (42 files) | ||||
calx.js | Class | Class source | ||
cell.js | Class | Class source | ||
data.js | Class | Class source | ||
defaultConfig.js | Class | Class source | ||
formula.js | Class | Class source | ||
ieHack.js | Class | Class source | ||
jQueryCalx.js | Class | Class source | ||
parserFactory.js | Class | Class source | ||
sheet.js | Class | Class source | ||
utility.js | Class | Class source |
Files | / | php-build | / | include | / | calx |
File | Role | Description |
---|---|---|
calculate.js | Class | Class source |
destroy.js | Class | Class source |
evaluate.js | Class | Class source |
getCell.js | Class | Class source |
getFormula.js | Aux. | Auxiliary script |
getSheet.js | Class | Class source |
getUtility.js | Class | Class source |
init.js | Class | Class source |
refresh.js | Class | Class source |
registerFunction.js | Class | Class source |
registerVariable.js | Class | Class source |
reset.js | Class | Class source |
setValue.js | Class | Class source |
update.js | Class | Class source |
Files | / | php-build | / | include | / | cell |
File | Role | Description |
---|---|---|
buildDependency.js | Class | Class source |
calculate.js | Class | Class source |
checkCircularReference.js | Class | Class source |
evaluateFormula.js | Class | Class source |
formTags.js | Class | Class source |
getAddress.js | Class | Class source |
getFloatValue.js | Class | Class source |
getFormat.js | Class | Class source |
getFormattedValue.js | Class | Class source |
getFormula.js | Class | Class source |
getStringValue.js | Class | Class source |
getValue.js | Class | Class source |
hasRemoteDependency.js | Class | Class source |
highlightDependant.js | Class | Class source |
init.js | Class | Class source |
isAffected.js | Class | Class source |
isProcessed.js | Class | Class source |
processDependant.js | Class | Class source |
processDependency.js | Class | Class source |
registerDependant.js | Class | Class source |
removeDependant.js | Class | Class source |
removeDependency.js | Class | Class source |
renderComputedValue.js | Class | Class source |
resyncFormula.js | Class | Class source |
resyncValue.js | Class | Class source |
setAffected.js | Class | Class source |
setConditionalStyle.js | Class | Class source |
setFormat.js | Class | Class source |
setFormula.js | Class | Class source |
setProcessed.js | Class | Class source |
setValue.js | Class | Class source |
Files | / | php-build | / | include | / | formula |
File | Role | Description |
---|---|---|
custom.js | Class | Class source |
date.js | Class | Class source |
engineering.js | Class | Class source |
financial.js | Class | Class source |
general.js | Class | Class source |
geometry.js | Class | Class source |
logical.js | Class | Class source |
math.js | Class | Class source |
statistic.js | Class | Class source |
stoic.js | Class | Class source |
text.js | Class | Class source |
trigonometry.js | Class | Class source |
user_defined.js | Class | Class source |
Files | / | php-build | / | include | / | sheet |
File | Role | Description |
---|---|---|
applyChange.js | Class | Class source |
attachEvent.js | Class | Class source |
buildCellDependency.js | Class | Class source |
calculate.js | Class | Class source |
calculateDependant.js | Aux. | Auxiliary script |
calculateDependency.js | Aux. | Auxiliary script |
callFunction.js | Class | Class source |
checkCircularReference.js | Class | Class source |
clearAffectedCell.js | Class | Class source |
clearCalculatedFlag.js | Class | Class source |
clearDependencies.js | Class | Class source |
clearProcessedFlag.js | Class | Class source |
comparator.js | Class | Class source |
evaluate.js | Class | Class source |
getActiveCell.js | Class | Class source |
getCell.js | Class | Class source |
getCellRange.js | Class | Class source |
getCellRangeValue.js | Class | Class source |
getCellValue.js | Class | Class source |
getRemoteCell.js | Class | Class source |
getRemoteCellRange.js | Class | Class source |
getRemoteCellRangeValue.js | Example | Example script |
getRemoteCellValue.js | Class | Class source |
getVariable.js | Class | Class source |
goalSeek.js | Class | Class source |
hasRelatedSheet.js | Class | Class source |
init.js | Class | Class source |
isCalculated.js | Class | Class source |
obj.js | Class | Class source |
refresh.js | Class | Class source |
registerCell.js | Class | Class source |
registerDependant.js | Class | Class source |
registerDependency.js | Class | Class source |
registerVariable.js | Class | Class source |
removeCell.js | Class | Class source |
renderComputedValue.js | Class | Class source |
reset.js | Class | Class source |
scan.js | Class | Class source |
setActiveCell.js | Class | Class source |
setCalculated.js | Class | Class source |
time.js | Class | Class source |
update.js | Class | Class source |
Files | / | php-build | / | vendor |
File | Role | Description | ||
---|---|---|---|---|
composer (6 files) | ||||
devize (1 directory) | ||||
autoload.php | Data | Auxiliary data |
Files | / | php-build | / | vendor | / | composer |
File | Role | Description |
---|---|---|
autoload_classmap.php | Data | Auxiliary data |
autoload_namespaces.php | Data | Auxiliary data |
autoload_psr4.php | Data | Auxiliary data |
autoload_real.php | Data | Auxiliary data |
ClassLoader.php | Data | Auxiliary data |
installed.json | Data | Auxiliary data |
Files | / | php-build | / | vendor | / | devize | / | closure-compiler |
File | Role | Description | ||
---|---|---|---|---|
compiler-latest (2 files) | ||||
src (1 directory) | ||||
build.xml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Data | Auxiliary data |
Files | / | php-build | / | vendor | / | devize | / | closure-compiler | / | compiler-latest |
Files | / | php-build | / | vendor | / | devize | / | closure-compiler | / | src |
File | Role | Description | ||
---|---|---|---|---|
ClosureCompiler (2 files) |
Files | / | php-build | / | vendor | / | devize | / | closure-compiler | / | src | / | ClosureCompiler |
File | Role | Description |
---|---|---|
ClosureCompiler.php | Data | for minifiying the output |
CompilerException.php | Data | error handler |
Files | / | sample |
File | Role | Description | ||
---|---|---|---|---|
app (1 file) | ||||
css (3 files) | ||||
font-awesome (2 directories) | ||||
js (3 files) | ||||
basic.html | Doc. | Documentation | ||
chart.html | Doc. | Documentation | ||
checkbox.html | Doc. | Documentation | ||
complex.html | Doc. | Documentation | ||
data.html | Doc. | Documentation | ||
dynamic_form.html | Doc. | Documentation | ||
formula.html | Doc. | Documentation | ||
formula.php | Data | Auxiliary data | ||
index.html | Doc. | Documentation | ||
multisheet.html | Doc. | Documentation | ||
radiobox.html | Doc. | Documentation | ||
untitled.html | Doc. | Documentation |
Files | / | sample | / | css |
File | Role | Description |
---|---|---|
bootstrap.css | Data | Auxiliary data |
sb-admin.css | Data | Auxiliary data |
style.css | Data | Auxiliary data |
Files | / | sample | / | font-awesome | / | css |
File | Role | Description |
---|---|---|
font-awesome.css | Data | Auxiliary data |
font-awesome.min.css | Data | Auxiliary data |
Files | / | sample | / | font-awesome | / | fonts |
File | Role | Description |
---|---|---|
fontawesome-webfont.svg | Data | Auxiliary data |
Files | / | sample | / | js |
File | Role | Description |
---|---|---|
bootstrap.js | Class | Class source |
jquery-calx-sample-2.2.8.js | Class | Class source |
jquery-calx-sample-2.2.8.min.js | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
99% |
|
|
User Comments (1) | |||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Detailed documentation Detailed documentation on how to configure calx |