redoc/lib/components/ApiInfo/api-info.js
2016-03-31 00:20:31 +03:00

23 lines
629 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 default class ApiInfo extends BaseComponent {
constructor(schemaMgr, optionsMgr) {
super(schemaMgr);
this.optionsMgr = optionsMgr;
}
prepareModel() {
this.data = this.componentSchema.info;
this.specUrl = this.optionsMgr.options.specUrl;
}
}