redoc/lib/components/ApiInfo/api-info.js
2016-05-06 00:48:41 +03:00

23 lines
621 B
JavaScript

'use strict';
import {SchemaManager, RedocComponent, BaseComponent} from '../base';
import OptionsManager from '../../options';
@RedocComponent({
selector: 'api-info',
styleUrls: ['./lib/components/ApiInfo/api-info.css'],
templateUrl: './lib/components/ApiInfo/api-info.html'
})
@Reflect.metadata('parameters', [[SchemaManager], [OptionsManager]])
export class ApiInfo extends BaseComponent {
constructor(schemaMgr, optionsMgr) {
super(schemaMgr);
this.optionsMgr = optionsMgr;
}
prepareModel() {
this.data = this.componentSchema.info;
this.specUrl = this.optionsMgr.options.specUrl;
}
}