1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/io/desktopnotify/42-desktopnotify.html

60 lines
2.2 KiB
HTML
Raw Normal View History

2014-03-02 00:32:53 +01:00
<!--
Copyright 2013 IBM Corp.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
2014-03-02 00:59:46 +01:00
<script type="text/x-red" data-template-name="desktopnotify">
2014-03-02 00:32:53 +01:00
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-title"><i class="icon-tag"></i> Title</label>
<input type="text" id="node-input-title" placeholder="Title">
</div>
<div class="form-row">
<label for="node-input-maxlength"><i class="icon-tag"></i> Maximum Length</label>
<input type="text" id="node-input-maxlength" placeholder="Maximum Length">
</div>
</script>
2014-03-02 00:59:46 +01:00
<script type="text/x-red" data-help-name="desktopnotify">
<p>Incomming data gets forwarded to your desktopnotify-compatible desktop notification service.</p>
2014-03-02 00:32:53 +01:00
<p>Messages longer than maxlength get truncated.</p>
2014-03-02 00:59:46 +01:00
<p>See the <a href="https://github.com/mytrile/node-desktopnotify">desktopnotify node module</a> and <a href="https://wiki.archlinux.org/index.php/Desktop_Notifications">this wiki</a> for more information.</p>
2014-03-02 00:32:53 +01:00
</script>
<script type="text/javascript">
2014-03-02 00:59:46 +01:00
RED.nodes.registerType('desktopnotify',{
2014-03-02 00:32:53 +01:00
category: 'output',
defaults: {
name: {value:"Desktop Notification"},
maxlength: {value:"200"},
title: {value:"RED"},
active: {value:true}
},
label: function() {
return this.name || "Desktop Notificaton";
},
labelStyle: function() {
return this.name?"node_label_italic":"";
},
color:"#BDFF59",
inputs:1,
outputs:0,
icon: "debug.png",
align: "right"
});
</script>