mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
39 lines
1016 B
JavaScript
39 lines
1016 B
JavaScript
import BasicWidget from "./basic_widget.js";
|
|
|
|
const WIDGET_TPL = `
|
|
<div class="global-buttons">
|
|
<style>
|
|
.global-buttons {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
border: 1px solid var(--main-border-color);
|
|
border-radius: 7px;
|
|
margin: 3px 5px 5px 5px;
|
|
}
|
|
</style>
|
|
|
|
<a data-trigger-command="createTopLevelNote"
|
|
title="Create new top level note"
|
|
class="icon-action bx bx-folder-plus"></a>
|
|
|
|
<a data-trigger-command="collapseTree"
|
|
title="Collapse note tree"
|
|
class="icon-action bx bx-layer-minus"></a>
|
|
|
|
<a data-trigger-command="scrollToActiveNote"
|
|
title="Scroll to active note"
|
|
class="icon-action bx bx-crosshair"></a>
|
|
|
|
<a data-trigger-command="searchNotes"
|
|
title="Search in notes"
|
|
class="icon-action bx bx-search"></a>
|
|
</div>
|
|
`;
|
|
|
|
class GlobalButtonsWidget extends BasicWidget {
|
|
doRender() {
|
|
return this.$widget = $(WIDGET_TPL);
|
|
}
|
|
}
|
|
|
|
export default GlobalButtonsWidget; |