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

72 lines
1.9 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 {
padding: 0 0.2em;
min-width: 8em;
display: inline-block;
text-align: right;
}
2015-01-25 12:02:20 +00:00
</style>
2015-02-27 10:24:02 +00:00
<div class="ui-widget ui-widget-content ui-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">
<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,
},
attr: {
title: hasValue ? 'click to refresh' : 'click to expand/collapse',
},
click: toggle,
"></span>
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-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>
<script type="text/html" id="inplace-editor-template">
<input style="width: 8em" >
</script>