")
+ .css("border", "solid 1px #C9C9C9")
+ .css("margin", "5px");
$propertyInner
+ .append($checkbox)
.append($nodeProperty)
- .append($nodeValue)
- .append($checkbox);
- $propertyList.append($propertiesTitle).append($propertyInner);
+ .append($nodeValue);
+ $container.append($propertyInner);
+ $propertyList
+ .append($propertiesTitle)
+ .append($description)
+ .append($container);
$node.append($nodeName).append($propertyList);
nodeCheckboxList.append($node);
- element.properties.forEach(property => {
+ element.properties.forEach((property, index) => {
// add checkbox of each node's properties
const $propertyContainer = $("
").attr(
"class",
"property-container"
);
+ if (index % 2 == 0) {
+ $propertyContainer.css("background-color", "#F6F9FF");
+ }
const $propertyInner = $("
").attr("class", "property-inner");
+
const $nodeId = $("")
.attr("id", "node-id")
.text(element.nodeId);
const $nodeName = $("")
.attr("id", "node-name")
.text(element.nodeName);
+ const $checkBox = $(" ")
+ .attr("type", "checkbox")
+ .attr("class", "property-checkbox");
const $nodeProperty = $("")
.attr("id", "node-property-name")
.text(property[0]);
const $nodeValue = $("")
.attr("id", "node-property-value")
.text(property[1]);
- const $checkBox = $(" ")
- .attr("type", "checkbox")
- .attr("class", "property-checkbox");
$propertyInner
.append($nodeId)
.append($nodeName)
+ .append($checkBox)
.append($nodeProperty)
- .append($nodeValue)
- .append($checkBox);
+ .append($nodeValue);
+
$propertyContainer.append($propertyInner);
- $propertyList.append($propertyContainer);
+ $container.append($propertyContainer);
// If there are existing properties saved
// check the checkbox and fill in the description in the textarea.
@@ -202,7 +223,7 @@
if ($(this).is(":checked")) {
const nodeId = $(this).parent().children()[0].innerText;
const nodeName = $(this).parent().children()[1].innerText;
- const propertyName = $(this).parent().children()[2].innerText;
+ const propertyName = $(this).parent().children()[3].innerText;
const description = $(this).parent().parent().children()[1].value;
node.properties.push({
nodeId: nodeId,