redoc/lib/components/Method/method.js

23 lines
584 B
JavaScript
Raw Normal View History

2015-10-08 23:21:51 +03:00
'use strict';
import {JsonPointer} from '../../utils/JsonPointer';
import {RedocComponent, BaseComponent} from '../base';
2015-10-08 23:21:51 +03:00
@RedocComponent({
2015-10-08 23:21:51 +03:00
selector: 'method',
2015-10-10 15:34:46 +03:00
templateUrl: './lib/components/Method/method.html',
styleUrls: ['./lib/components/Method/method.css']
2015-10-08 23:21:51 +03:00
})
export class Method extends BaseComponent {
2015-10-08 23:21:51 +03:00
constructor(schemaMgr) {
super(schemaMgr);
2015-10-08 23:21:51 +03:00
}
prepareModel() {
2015-10-08 23:21:51 +03:00
this.data = {};
this.data.method = JsonPointer.baseName(this.pointer);
this.data.path = JsonPointer.baseName(this.pointer, 2);
this.data.methodInfo = this.componentSchema;
2015-10-08 23:21:51 +03:00
}
}