|
@@ -1156,6 +1156,16 @@ class ClassPage {
|
|
this.createContextMenuItem('CopyLink', 'Copy link', () => {
|
|
this.createContextMenuItem('CopyLink', 'Copy link', () => {
|
|
DOM.copyToClipboard(`${Url.getFullPath()}#${propertyItemType === 'method' ? 'Methods' : 'Properties'}:${propertyItemName}`);
|
|
DOM.copyToClipboard(`${Url.getFullPath()}#${propertyItemType === 'method' ? 'Methods' : 'Properties'}:${propertyItemName}`);
|
|
});
|
|
});
|
|
|
|
+ this.createContextMenuDelimiter();
|
|
|
|
+ this.createContextMenuItem('CopyHtmlLink', 'Copy HTML link', () => {
|
|
|
|
+ let linkText = propertyItemName;
|
|
|
|
+ if(propertyItemName.startsWith(ClassPage.__static__))
|
|
|
|
+ linkText = `${Class[ClassPage.ClassProperties.ShortName] || Class[ClassPage.ClassProperties.Name]}.${propertyItemName.replace(ClassPage.__static__, '')}`;
|
|
|
|
+ if(propertyItemType === 'method')
|
|
|
|
+ linkText = `${linkText}()`;
|
|
|
|
+ console.log(propertyItemName, propertyItemName.startsWith(ClassPage.__static__), `${Class[ClassPage.ClassProperties.ShortName] || Class[ClassPage.ClassProperties.Name]}.${propertyItemName.replace(ClassPage.__static__, '')}`, linkText);
|
|
|
|
+ DOM.copyToClipboard(`<a href="${Url.getPath()}#${propertyItemType === 'method' ? 'Methods' : 'Properties'}:${propertyItemName}">${linkText}</a>`);
|
|
|
|
+ });
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
|