mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-06 12:43:06 +08:00
Add formulas to results
This commit is contained in:
parent
e5b2f29b42
commit
e096f936f9
3 changed files with 14 additions and 0 deletions
|
@ -12,6 +12,7 @@ function initHandsOnTables(root) {
|
||||||
rowHeaders: true,
|
rowHeaders: true,
|
||||||
colHeaders: true,
|
colHeaders: true,
|
||||||
fillHandle: false,
|
fillHandle: false,
|
||||||
|
formulas: true,
|
||||||
cells: function (row, col, prop) {
|
cells: function (row, col, prop) {
|
||||||
var cellProperties = {};
|
var cellProperties = {};
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@ function initEditableHandsOnTable(root) {
|
||||||
rowHeaders: true,
|
rowHeaders: true,
|
||||||
colHeaders: true,
|
colHeaders: true,
|
||||||
contextMenu: true,
|
contextMenu: true,
|
||||||
|
formulas: true,
|
||||||
preventOverflow: 'horizontal'
|
preventOverflow: 'horizontal'
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -54,3 +54,15 @@
|
||||||
<%= javascript_include_tag "results/result_texts" %>
|
<%= javascript_include_tag "results/result_texts" %>
|
||||||
<%= javascript_include_tag "results/result_tables" %>
|
<%= javascript_include_tag "results/result_tables" %>
|
||||||
<%= javascript_include_tag "results/result_assets" %>
|
<%= javascript_include_tag "results/result_assets" %>
|
||||||
|
|
||||||
|
<!-- Libraries for formulas -->
|
||||||
|
<%= javascript_include_tag "lodash" %>
|
||||||
|
<%= javascript_include_tag "numeral" %>
|
||||||
|
<%= javascript_include_tag "numeric" %>
|
||||||
|
<%= javascript_include_tag "md5" %>
|
||||||
|
<%= javascript_include_tag "jstat" %>
|
||||||
|
<%= javascript_include_tag "formula" %>
|
||||||
|
<%= javascript_include_tag "parser" %>
|
||||||
|
<%= javascript_include_tag "ruleJS" %>
|
||||||
|
<%= javascript_include_tag "handsontable.formula" %>
|
||||||
|
<%= stylesheet_link_tag "handsontable.formula" %>
|
||||||
|
|
Loading…
Reference in a new issue