25 lines
No EOL
777 B
HTML
25 lines
No EOL
777 B
HTML
<script type="text/javascript">
|
|
RED.nodes.registerType('grist-document',{
|
|
category: 'config',
|
|
defaults: {
|
|
name: {value:"", required:false},
|
|
docid: {value:"",required:true},
|
|
},
|
|
label: function() {
|
|
return this.name || this.docid;
|
|
}
|
|
});
|
|
</script>
|
|
|
|
<script type="text/html" data-template-name="grist-document">
|
|
<div class="form-row">
|
|
<label for="node-config-input-name"><i class="fa fa-bookmark"></i> Name</label>
|
|
<input type="text" id="node-config-input-name">
|
|
</div>
|
|
<div class="form-row">
|
|
<label for="node-config-input-docid"><i class="fa fa-file-text"></i> Document ID</label>
|
|
<input type="text" id="node-config-input-docid">
|
|
</div>
|
|
|
|
|
|
</script> |