1
0
Fork 0
fgdata/webgui/topics/Simulator/Properties.html

90 lines
2.6 KiB
HTML
Raw Normal View History

2015-01-25 12:02:20 +00:00
<style>
2015-02-27 10:24:02 +00:00
.pointer-icon {
cursor: pointer;
}
2015-01-25 12:02:20 +00:00
2015-02-27 10:24:02 +00:00
.property-list {
list-style-type: none;
list-style-image: none;
padding-left: 26px;
}
.property-name {
width: 12em;
display: inline-block;
}
.property-value {
2015-03-01 17:22:56 +00:00
padding: 0 0.2em;
min-width: 8em;
display: inline-block;
text-align: right;
2015-02-27 10:24:02 +00:00
}
2015-01-25 12:02:20 +00:00
</style>
2015-03-01 17:22:56 +00:00
<div class="ui-widget ui-widget-content ui-corner-all" data-bind="visible: hasGraphItems">
<div class="ui-widget-header">Property Graph</div>
<div style="height: 300px; width: 100%"
data-bind="flotchart: { data: flotData, options: flotOptions, hover: graphHover }"></div>
2015-02-27 10:24:02 +00:00
</div>
2015-03-01 17:22:56 +00:00
<div class=" ui-widget
ui-widget-contentui-corner-all">
<div class="ui-widget-header">Property Tree</div>
<div data-bind="template: { name: 'propertytree-template', data: properties }"></div>
</div>
<script type="text/html" id="propertytree-template">
2015-02-27 10:24:02 +00:00
<ul class="property-list" data-bind="foreach: $data">
<li>
<span class="ui-icon pointer-icon" style="display: inline-block;"
data-bind="
css: {
'ui-icon-triangle-1-e': hasChildren,
'ui-icon-triangle-1-se': isExpanded,
'ui-icon-refresh': hasValue,
2015-03-01 17:22:56 +00:00
'ui-icon-blank': !(hasValue||hasChildren),
},
attr: {
2015-03-01 17:22:56 +00:00
title: hasValue ? 'refresh' : 'expand/collapse',
},
click: toggle,
"></span>
2015-03-01 17:22:56 +00:00
2015-02-27 15:49:19 +00:00
<span class="property-name"
2015-02-27 10:24:02 +00:00
data-bind="
2015-02-27 15:49:19 +00:00
text: indexedName,
2015-02-27 10:24:02 +00:00
css: {
'pointer-icon': hasChildren,
},
click: toggle,
"></span>
2015-01-25 12:02:20 +00:00
2015-03-01 17:22:56 +00:00
<span class="ui-icon ui-icon-blank" style="display: inline-block;"
data-bind="
css: {
'ui-icon-image': isPlottable,
'pointer-icon': hasValue,
},
attr: {
title: hasValue ? 'toggle plot' : '',
},
click: togglePlot,
"></span>
2015-02-27 10:24:02 +00:00
<span class="property-value ui-state-hover pointer-icon ui-corner-all"
data-bind="
text: value,
visible: hasValue,
click: valueEdit,
"></span>
2015-01-25 12:02:20 +00:00
2015-02-27 10:24:02 +00:00
<div data-bind="
template: {
name: 'propertytree-template',
data: children
},
visible: isExpanded
"></div>
</li>
</ul>
</script>
2015-03-01 17:22:56 +00:00
<script type="text/html" id="inplace-editor-template">
2015-02-27 10:24:02 +00:00
<input style="width: 8em" >
2015-03-01 17:22:56 +00:00
</script>