FCLT#85478 Melding-workflow-node styling
svn path=/Website/trunk/; revision=67249
This commit is contained in:
@@ -49,8 +49,9 @@ DOCTYPE_Disable = 1;
|
||||
if (!oRs.EoF) {
|
||||
label = L("lcl_complain") + " {0}, {1}\n{2}".format(oRs("mld_melding_key").Value, toDateTimeString(oRs("mld_melding_datum").Value), label);
|
||||
node.key = oRs("mld_melding_key").Value;
|
||||
node.borderWidth = 3;
|
||||
node.borderWidthSelected = 4;
|
||||
node.color = {
|
||||
background: "#5cb02e" // var(--aareon-color-7)
|
||||
};
|
||||
}
|
||||
oRs.Close()
|
||||
} else {
|
||||
@@ -150,6 +151,13 @@ PAGE_START();
|
||||
options.nodes.widthConstraint = {
|
||||
"maximum": 250
|
||||
};
|
||||
options.nodes.chosen = {
|
||||
node: function (values, id, selected, hovering) {
|
||||
if (selected) {
|
||||
values.borderWidth = 2;
|
||||
}
|
||||
}
|
||||
};
|
||||
options.edges.arrows = "to";
|
||||
options.layout.hierarchical.nodeSpacing = 2.5 * options.layout.hierarchical.nodeSpacing;
|
||||
options.layout.hierarchical.levelSeparation = <%=maxLabelLength%>;
|
||||
|
||||
Reference in New Issue
Block a user