2016-12-29 20:20:29 +03:00
|
|
|
'use strict';
|
|
|
|
import { Component, ChangeDetectionStrategy, OnInit, HostBinding } from '@angular/core';
|
2017-01-19 00:48:55 +03:00
|
|
|
import { Marker, SearchService } from '../../services/';
|
2016-12-29 20:20:29 +03:00
|
|
|
|
|
|
|
@Component({
|
|
|
|
selector: 'redoc-search',
|
|
|
|
styleUrls: ['./redoc-search.css'],
|
|
|
|
templateUrl: './redoc-search.html',
|
|
|
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
|
|
})
|
|
|
|
export class RedocSearch implements OnInit {
|
|
|
|
logo:any = {};
|
|
|
|
|
2017-01-19 00:48:55 +03:00
|
|
|
constructor(private marker: Marker, public search: SearchService) {
|
2016-12-29 20:20:29 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
init() {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
update(val) {
|
|
|
|
this.marker.mark(val);
|
|
|
|
}
|
|
|
|
|
2017-01-19 00:48:55 +03:00
|
|
|
tmpSearch() {
|
|
|
|
this.search.ensureSearchVisible([
|
|
|
|
'/paths/~1pet~1findByStatus/get/responses/200/schema/items/properties/category/properties/sub',
|
|
|
|
'/paths/~1pet~1findByStatus/get/responses/200/schema/items/properties/tags',
|
|
|
|
'/paths/~1pet/post/parameters/0/schema/properties/tags'
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
2016-12-29 20:20:29 +03:00
|
|
|
ngOnInit() {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|