38 lines
1.3 KiB
HTML
38 lines
1.3 KiB
HTML
<script type="text/javascript">
|
|
RED.nodes.registerType('book',{
|
|
category: 'Spreadsheet',
|
|
color: "#DEBD5C",
|
|
defaults: {
|
|
name: {value:""},
|
|
raw: {value:false}
|
|
},
|
|
inputs:1,
|
|
outputs:1,
|
|
icon: "font-awesome/fa-file-excel-o",
|
|
label: function() {
|
|
return this.name||"book";
|
|
},
|
|
labelStyle: function() {
|
|
return this.name?"node_label_italic":"";
|
|
},
|
|
inputLabels: function() {
|
|
return this._("book.label.binaryBuffer");
|
|
},
|
|
outputLabels: function () {
|
|
return this._("book.label.workbookObject");
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="text/x-red" data-template-name="book">
|
|
<div class="form-row">
|
|
<label for="node-input-name"><i class="icon-tag"></i> <span data-i18n="node-red:common.label.name"></span></label>
|
|
<input type="text" id="node-input-name" data-i18n="[placeholder]node-red:common.label.name">
|
|
</div>
|
|
<div class="form-row">
|
|
<label><i class="fa fa-sign-out"></i> <span data-i18n="book.label.parse"></span></label>
|
|
<input type="checkbox" id="node-input-raw" style="width:auto">
|
|
<label for="node-input-raw" style="width:auto" data-i18n="book.label.raw"></label>
|
|
</div>
|
|
</script>
|