NgHandsonTable - get value instead of formula

Developer
Size
2,317 Kb
Views
44,528

How do I make an nghandsontable - get value instead of formula?

What is a nghandsontable - get value instead of formula? How do you make a nghandsontable - get value instead of formula? This script and codes were developed by Khalid Munir on 26 August 2022, Friday.

NgHandsonTable - get value instead of formula Previews

NgHandsonTable - get value instead of formula - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>ngHandsonTable - get value instead of formula</title>
</head>
<body> <h2>check console</h2>
<div id="example1" class="hot handsontable htColumnHeaders"></div>
<p class="push">PUSH</p>
<p id="result" class="result">result</p>
<script src="http://docs.handsontable.com/0.16.1/scripts/jquery.min.js"></script>
<script src="http://docs.handsontable.com/0.16.1/bower_components/handsontable/dist/handsontable.full.js"></script>
<link type="text/css" rel="stylesheet" href="http://docs.handsontable.com/0.16.1/bower_components/handsontable/dist/handsontable.full.min.css">
<script src="http://docs.handsontable.com/0.16.1/bower_components/numeraljs/languages/de.js"></script> <link rel="stylesheet" media="screen" href="http://handsontable.github.io/handsontable-ruleJS/lib/handsontable/handsontable.formula.css"> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/lib/lodash/lodash.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/lib/underscore.string/underscore.string.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/lib/moment/moment.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/lib/numeral/numeral.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/lib/numericjs/numeric.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/lib/js-md5/md5.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/lib/jstat/jstat.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/lib/formulajs/formula.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/js/parser.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/RuleJS/js/ruleJS.js"></script> <script src="http://handsontable.github.io/handsontable-ruleJS/lib/handsontable/handsontable.formula.js"></script> <script src="js/index.js"></script>
</body>
</html>

NgHandsonTable - get value instead of formula - Script Codes JS Codes

document.addEventListener("DOMContentLoaded", function() { var people = [	{base_price :'625.57',price:'77',	unit:'=A1*B1'},	{base_price :'656.95',price:'77',unit:'=A2*B2'}	],
example1 = document.getElementById('example1'),
settings1; settings1 = { data: people, formulas: true,	rowHeaders: true,	colHeaders: true,	colHeaders: [	'Price', 'Currency', 'USD'], columns: [ {data: 'base_price'}, {data: 'price'}, {data: 'unit'} ] };
var hot = new Handsontable(example1, settings1);
$('.push').click(function () { data = hot.getData(); console.log(data); // cell value data = hot.plugin.helper.cellValue ('C1'); console.log (data); var res = document.getElementById("result"); res.innerHTML += "</br>Cell C1 : " + data + "</br>"; // cell range data = hot.plugin.helper.cellRangeValue ('A1', 'C1'); console.log (data); res.innerHTML += "</ br>Range A1:C1 : [ " + data + " ]</br>"; // cell range data = hot.plugin.helper.cellRangeValue ('A1', 'C2'); console.log (data); res.innerHTML += "</ br>Range A1:C2 : [ " + data + " ]</br>"; // cell range data = hot.plugin.helper.cellRangeValue ('C1', 'C2'); console.log (data); res.innerHTML += "</ br>Range C1:C2 (formula's only) : [ " + data + " ]</br>"; //$('.result').text(data);
}); function bindDumpButton() { $('body').on('click', 'button[name=dump]', function () { var dump = $(this).data('dump'); var $container = $(dump); console.log('data of ' + dump, $container.handsontable('getData')); }); } bindDumpButton();
});
NgHandsonTable - get value instead of formula - Script Codes
NgHandsonTable - get value instead of formula - Script Codes
Home Page Home
Developer Khalid Munir
Username khalidmunir
Uploaded August 26, 2022
Rating 3
Size 2,317 Kb
Views 44,528
Do you need developer help for NgHandsonTable - get value instead of formula?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Khalid Munir (khalidmunir) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!