mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Info sidebar tweaks
This commit is contained in:
parent
1e33843798
commit
44a51e849d
@ -43,9 +43,10 @@ RED.sidebar.info = (function() {
|
|||||||
function refresh(node) {
|
function refresh(node) {
|
||||||
var table = '<table class="node-info"><tbody>';
|
var table = '<table class="node-info"><tbody>';
|
||||||
|
|
||||||
|
table += '<tr class="blank"><td colspan="2">Node</td></tr>';
|
||||||
table += "<tr><td>Type</td><td> "+node.type+"</td></tr>";
|
table += "<tr><td>Type</td><td> "+node.type+"</td></tr>";
|
||||||
table += "<tr><td>ID</td><td> "+node.id+"</td></tr>";
|
table += "<tr><td>ID</td><td> "+node.id+"</td></tr>";
|
||||||
table += '<tr class="blank"><td colspan="2"> Properties</td></tr>';
|
table += '<tr class="blank"><td colspan="2">Properties</td></tr>';
|
||||||
for (var n in node._def.defaults) {
|
for (var n in node._def.defaults) {
|
||||||
if (node._def.defaults.hasOwnProperty(n)) {
|
if (node._def.defaults.hasOwnProperty(n)) {
|
||||||
var val = node[n]||"";
|
var val = node[n]||"";
|
||||||
|
@ -588,12 +588,15 @@ table.node-info tr.blank {
|
|||||||
}
|
}
|
||||||
table.node-info tr.blank td {
|
table.node-info tr.blank td {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
|
border: none;
|
||||||
|
font-weight: bold;
|
||||||
|
padding-left: 0px;
|
||||||
}
|
}
|
||||||
table.node-info td:first-child{
|
table.node-info td:first-child{
|
||||||
color: #000;
|
color: #000;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
width: 90px;
|
width: 90px;
|
||||||
padding: 0 3px;
|
padding: 3px;
|
||||||
border-right: 1px solid #ddd;
|
border-right: 1px solid #ddd;
|
||||||
}
|
}
|
||||||
table.node-info td:last-child{
|
table.node-info td:last-child{
|
||||||
|
Loading…
Reference in New Issue
Block a user