mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
jsdoc @param => @type
This commit is contained in:
@@ -33,6 +33,7 @@ export default class InheritedAttributesWidget extends NoteContextAwareWidget {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
/** @type {AttributeDetailWidget} */
|
||||
this.attributeDetailWidget = new AttributeDetailWidget().setParent(this);
|
||||
this.child(this.attributeDetailWidget);
|
||||
}
|
||||
@@ -65,18 +66,21 @@ export default class InheritedAttributesWidget extends NoteContextAwareWidget {
|
||||
|
||||
for (const attribute of inheritedAttributes) {
|
||||
const $attr = (await attributeRenderer.renderAttribute(attribute, false))
|
||||
.on('click', e => this.attributeDetailWidget.showAttributeDetail({
|
||||
attribute: {
|
||||
noteId: attribute.noteId,
|
||||
type: attribute.type,
|
||||
name: attribute.name,
|
||||
value: attribute.value,
|
||||
isInheritable: attribute.isInheritable
|
||||
},
|
||||
isOwned: false,
|
||||
x: e.pageX,
|
||||
y: e.pageY
|
||||
}));
|
||||
.on('click', e => {
|
||||
setTimeout(() =>
|
||||
this.attributeDetailWidget.showAttributeDetail({
|
||||
attribute: {
|
||||
noteId: attribute.noteId,
|
||||
type: attribute.type,
|
||||
name: attribute.name,
|
||||
value: attribute.value,
|
||||
isInheritable: attribute.isInheritable
|
||||
},
|
||||
isOwned: false,
|
||||
x: e.pageX,
|
||||
y: e.pageY
|
||||
}), 100);
|
||||
});
|
||||
|
||||
this.$container
|
||||
.append($attr)
|
||||
|
||||
Reference in New Issue
Block a user