2020-04-26 09:40:02 +02:00
|
|
|
import BasicWidget from "../basic_widget.js";
|
2020-03-01 12:50:02 +01:00
|
|
|
|
|
|
|
const TPL = `
|
2020-03-01 15:19:16 +01:00
|
|
|
<button type="button" class="action-button d-sm-none d-md-none d-lg-none d-xl-none" aria-label="Close">
|
2020-03-01 12:50:02 +01:00
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>`;
|
|
|
|
|
|
|
|
class CloseDetailButtonWidget extends BasicWidget {
|
|
|
|
doRender() {
|
|
|
|
this.$widget = $(TPL);
|
|
|
|
|
2020-03-01 15:19:16 +01:00
|
|
|
this.$widget.on('click', () => this.triggerCommand('setActiveScreen', {screen:'tree'}));
|
2020-03-01 12:50:02 +01:00
|
|
|
|
|
|
|
return this.$widget;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CloseDetailButtonWidget;
|