1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 09:30:28 +00:00

Merge branch 'parameterised-transclusions' into geospatial-plugin

This commit is contained in:
jeremy@jermolene.com 2023-01-30 21:43:36 +00:00
commit 1ee77fb15a
2 changed files with 4 additions and 0 deletions

View File

@ -115,6 +115,7 @@ the
<$select tiddler=<<field>> field="import-field-type" default="string">
<option value="date">date</option>
<option value="string">string</option>
<option value="number">number</option>
</$select>
<$select tiddler=<<field>> field="import-field-source" default="column">
<option value="column">from column</option>

View File

@ -132,6 +132,9 @@ XLSXImporter.prototype.processField = function(fieldImportSpecTitle) {
value = $tw.utils.stringifyDate(new Date((cell.v - (25567 + 2)) * 86400 * 1000));
}
break;
case "number":
value = cell.v.toString();
break;
case "string":
// Intentional fall-through
default: