mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
feat(geomap): create geomap note type
This commit is contained in:
18
src/public/app/widgets/geo_map.ts
Normal file
18
src/public/app/widgets/geo_map.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import NoteContextAwareWidget from "./note_context_aware_widget.js";
|
||||
|
||||
const TPL = `\
|
||||
<div class="geo-map-widget">
|
||||
Map goes here.
|
||||
</div>`
|
||||
|
||||
export default class GeoMapWidget extends NoteContextAwareWidget {
|
||||
|
||||
constructor(widgetMode: "type") {
|
||||
super();
|
||||
}
|
||||
|
||||
doRender() {
|
||||
this.$widget = $(TPL)
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user