Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91967151
search.component.ts
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 16, 05:37
Size
863 B
Mime Type
text/x-java
Expires
Mon, Nov 18, 05:37 (2 d)
Engine
blob
Format
Raw Data
Handle
22351301
Attached To
rNIETZSCHEBETAAPP Nietzsche-Beta-App
search.component.ts
View Options
import { Component, OnInit } from '@angular/core';
import { Router, ActivatedRoute, Params } from '@angular/router';
import { TLN_SEARCH_ROUTE, TLN_FIND_PARAM } from '../constants';
import { Mapping } from '../route-reader';
import { RouteUpdater } from '../route-updater';
@Component({
selector: 'search',
templateUrl: './search.component.html',
styleUrls: ['./search.component.css']
})
export class SearchComponent extends RouteUpdater {
findText: string;
protected mapping: Mapping = { findText: { param: TLN_FIND_PARAM, type: "string" }}
constructor(protected router: Router, protected activatedRoute: ActivatedRoute ) {
super(router, activatedRoute);
}
openFulltextSearch(){
this.currentRoute = TLN_SEARCH_ROUTE
this.updateParams();
}
private clearFindText() {
this.findText = '';
this.updateParams();
}
}
Event Timeline
Log In to Comment