1
0
Fork 0
fgdata/webgui/widgets/sidebarwidget.html
Torsten Dreyer f9eab39e93 Phi: sortable widgets
Widgets on the right widgetarea can now be
rearranged by drag-and-drop
2015-03-15 11:46:25 +01:00

37 lines
1 KiB
HTML

<style>
.widget-header-button {
font-size: unset;
}
.widget-handle {
cursor: pointer;
font-weight: bold;
}
</style>
<div data-bind="event: { mouseover: onMouseover, mouseout: onMouseout }">
<div class="ui-state-default widget-handle">
<button
data-bind="
button: {
icons: {
primary: pinned() ? 'ui-icon-pin-s' : 'ui-icon-pin-w'
},
text: false
},
click: pin"
class="widget-header-button" title="Pin"></button>
<button
data-bind="
button: {
icons: {
primary: 'ui-icon-circlesmall-close'
},
text: false
},
click: close"
class="widget-header-button" title="Close"></button>
<span data-bind="text: widget"></span>
</div>
<div class="phi-widget" data-bind="component: { name: widget }, visible: expanded"></div>
</div>