mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 13:26:08 +00:00
Improve search page
This commit is contained in:
@@ -6,6 +6,7 @@ import { SearchCategory } from "src/app/models/search-category";
|
||||
import { SearchDocument } from "src/app/models/search-document";
|
||||
import { formatDate } from '@angular/common';
|
||||
import { CloudData, CloudOptions } from 'angular-tag-cloud-module';
|
||||
import { SenderPage } from 'src/app/pages/search/sender/sender.page';
|
||||
|
||||
@Component({
|
||||
selector: 'app-search',
|
||||
@@ -42,7 +43,15 @@ export class SearchPage implements OnInit {
|
||||
{text: 'Weight-10-link', weight: 10, link: 'https://google.com', tooltip: 'display a tooltip'},
|
||||
// ...
|
||||
];
|
||||
|
||||
|
||||
// See http://idangero.us/swiper/api/ for valid options.
|
||||
slideOpts = {
|
||||
slidesPerView: 3,
|
||||
initialSlide: 0,
|
||||
speed: 400,
|
||||
height: '100px'
|
||||
}
|
||||
|
||||
constructor(private modalController: ModalController,
|
||||
private search: SearchService) {
|
||||
|
||||
@@ -128,4 +137,17 @@ export class SearchPage implements OnInit {
|
||||
}
|
||||
|
||||
|
||||
async openAdvanceSearchSelection() {
|
||||
|
||||
const modal = await this.modalController.create({
|
||||
component: SenderPage,
|
||||
cssClass: 'sender',
|
||||
componentProps: {
|
||||
}
|
||||
});
|
||||
|
||||
return await modal.present();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user