Skip to content
Snippets Groups Projects
Commit f51b6f0b authored by Christoph Dornieden's avatar Christoph Dornieden
Browse files

added entity information on right sidebar

parent 899bb77d
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ export default Ember.Component.extend({ ...@@ -9,7 +9,7 @@ export default Ember.Component.extend({
themes: Object.keys(Themes), themes: Object.keys(Themes),
layoutAlgorithms: [ layoutAlgorithms: [
'cose', 'cose',
//'cose-bilkent', // broken - see https://github.com/cytoscape/cytoscape.js-cose-bilkent/issues/18 // 'cose-bilkent', // broken - see https://github.com/cytoscape/cytoscape.js-cose-bilkent/issues/18
'cola', 'cola',
'grid', 'grid',
'concentric', 'concentric',
......
...@@ -42,6 +42,7 @@ $node > node { /* compounds. "Nodes" in meta model. $ selects the parent node th ...@@ -42,6 +42,7 @@ $node > node { /* compounds. "Nodes" in meta model. $ selects the parent node th
color: ${theme.nodeTextColor}; color: ${theme.nodeTextColor};
border-color: ${theme.nodeBorderColor}; border-color: ${theme.nodeBorderColor};
font-weight: bold; font-weight: bold;
z-index: 100;
} }
...@@ -64,6 +65,7 @@ $node > node { /* compounds. "Nodes" in meta model. $ selects the parent node th ...@@ -64,6 +65,7 @@ $node > node { /* compounds. "Nodes" in meta model. $ selects the parent node th
line-color: ${theme.arrowColor}; line-color: ${theme.arrowColor};
target-arrow-color: ${theme.arrowColor}; target-arrow-color: ${theme.arrowColor};
text-background-color: ${theme.arrowLineColor}; text-background-color: ${theme.arrowLineColor};
text-outline-color:${theme.arrowLineColor};
text-background-opacity: 1; text-background-opacity: 1;
text-background-shape: roundrectangle; text-background-shape: roundrectangle;
font-size: 12pt; font-size: 12pt;
...@@ -76,6 +78,7 @@ $node > node { /* compounds. "Nodes" in meta model. $ selects the parent node th ...@@ -76,6 +78,7 @@ $node > node { /* compounds. "Nodes" in meta model. $ selects the parent node th
border-color: ${theme.nodeGroupBorderColor}; border-color: ${theme.nodeGroupBorderColor};
border-width: 2px; border-width: 2px;
font-weight: bold; font-weight: bold;
z-index: 100;
} }
edge { edge {
...@@ -83,7 +86,11 @@ edge { ...@@ -83,7 +86,11 @@ edge {
color: ${theme.arrowLabelColor}; color: ${theme.arrowLabelColor};
font-weight: bold; font-weight: bold;
target-arrow-shape: triangle-backcurve; target-arrow-shape: triangle-backcurve;
curve-style: bezier; /* supports arrows */ curve-style: bezier;/* supports arrow heads*/
edge-distances: node-position;
z-index: 0;
width: data(workload); width: data(workload);
} }
......
import Ember from 'ember'; import Ember from 'ember';
export default Ember.Component.extend({ export default Ember.Component.extend({
entity: null entity: null,
filteredProperties: function(){
this.debug('entity', this.get('entity'));
const properties = [];
const entity = this.get('entity');
this.get('entity').eachAttribute(
(property) => {
if(!(property.indexOf('Id') >= 0)){
properties.push({key: property, value: entity.get(property)});
}
});
this.debug('properties', properties);
return properties;
}.property('entity')
}); });
Hello Subroute! {{entity-details entity=model}}
{{entity-details entity=model}}
\ No newline at end of file
id: {{entity.id}}
name: {{entity.name}}
type: {{entity.type}}
systemId: {{entity.systemId}}
{{log 'entity-details' entity}} <table class="table table-hover table-striped">
<thead>
<tr>
<th>Property</th>
<th>Value</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>{{entity.id}}</td>
</tr>
{{#each filteredProperties as |property|}}
<tr>
<td>{{property.key}}</td>
<td>{{property.value}}</td>
</tr>
{{/each}}
</tbody>
</table>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment