2015-03-14 21:31:31 +00:00
|
|
|
<style>
|
|
|
|
.widget-header-button {
|
|
|
|
font-size: unset;
|
|
|
|
}
|
2015-10-09 07:52:37 +00:00
|
|
|
|
2015-03-15 10:46:25 +00:00
|
|
|
.widget-handle {
|
2015-10-09 07:52:37 +00:00
|
|
|
cursor: pointer;
|
|
|
|
font-weight: bold;
|
2015-03-15 10:46:25 +00:00
|
|
|
}
|
2015-03-14 21:31:31 +00:00
|
|
|
</style>
|
|
|
|
<div data-bind="event: { mouseover: onMouseover, mouseout: onMouseout }">
|
2015-03-15 10:46:25 +00:00
|
|
|
<div class="ui-state-default widget-handle">
|
2015-10-09 07:52:37 +00:00
|
|
|
<button
|
|
|
|
data-bind="
|
2015-03-14 21:31:31 +00:00
|
|
|
button: {
|
|
|
|
icons: {
|
|
|
|
primary: pinned() ? 'ui-icon-pin-s' : 'ui-icon-pin-w'
|
|
|
|
},
|
|
|
|
text: false
|
|
|
|
},
|
|
|
|
click: pin"
|
2015-10-09 07:52:37 +00:00
|
|
|
class="widget-header-button" title="Pin"></button>
|
|
|
|
<button
|
|
|
|
data-bind="
|
|
|
|
button: {
|
|
|
|
icons: {
|
|
|
|
primary: 'ui-icon-newwin'
|
|
|
|
},
|
|
|
|
text: false
|
|
|
|
},
|
|
|
|
click: detach"
|
|
|
|
class="widget-header-button" title="Detach"></button>
|
|
|
|
<button style="float: right"
|
|
|
|
data-bind="
|
2015-03-14 21:31:31 +00:00
|
|
|
button: {
|
|
|
|
icons: {
|
|
|
|
primary: 'ui-icon-circlesmall-close'
|
|
|
|
},
|
|
|
|
text: false
|
|
|
|
},
|
|
|
|
click: close"
|
2015-10-09 07:52:37 +00:00
|
|
|
class="widget-header-button" title="Close"></button>
|
|
|
|
|
2015-03-14 21:31:31 +00:00
|
|
|
<span data-bind="text: widget"></span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="phi-widget" data-bind="component: { name: widget }, visible: expanded"></div>
|
|
|
|
|
|
|
|
</div>
|