Page MenuHomec4science

page-information.ts
No OneTemporary

File Metadata

Created
Tue, Jul 9, 13:33

page-information.ts

import { OnInit } from '@angular/core';
import { TlnQueryServiceInterface, ManuscriptUnity, NavigationPage} from '../models';
import { DataHandler } from '../data_handler';
import { TlnTextGeneticOrder} from '../datatypes/text_version';
import { TLN_PAGE_PARAM } from '../constants';
import { TlnPositionalStyleMarkup, TlnFilteredPositionalStyleMarkup } from '../datatypes/positional-markup';
export class PageInformation implements OnInit {
/**
* the data handler of this component that retrieves
* data and instantiates it according to their proper
* datatypes.
**/
dataHandler: DataHandler = new DataHandler(this);
geneticOrders: TlnTextGeneticOrder[] = [];
constructor(private queryService: TlnQueryServiceInterface, public current_page: NavigationPage){ }
ngOnInit() {
this.dataHandler.addHandler('geneticOrders', { 'handler': TlnTextGeneticOrder});
this.dataHandler.setQueryService(this.queryService);
this.dataHandler.getData('geneticOrders', <string>this.current_page.id)
}
public hasInformation(): boolean {
return this.geneticOrders.length > 0;
}
}

Event Timeline