Add search model icons

This commit is contained in:
2021-02-11 14:31:43 +01:00
parent d28e88de30
commit 1586c672f1
5 changed files with 94 additions and 31 deletions
+20
View File
@@ -48,6 +48,8 @@ export class SearchPage implements OnInit {
}
loadedAttachments:any;
list = []
constructor(private modalController: ModalController,
@@ -61,8 +63,13 @@ export class SearchPage implements OnInit {
}
wordCloud(){
this.search.mostSeachWord("10").subscribe(res=>{
const container = document.querySelector('.most-searched-word-container');
container.setAttribute('style',`height: ${window.innerWidth}px`);
let list = []
res.forEach(element => {
@@ -338,4 +345,17 @@ export class SearchPage implements OnInit {
this.showCategory = categoryName;
}
itemIcons(): string{
return window.location.pathname
}
viewDocument(){
const url: string = this.loadedAttachments.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
// const browser = this.iab.create(url,"_blank");
// browser.show();
}
}