kendo-react-sharepoint-spfx/lib/webparts/kendoReactSpfx/KendoReactSpfxWebPart.js

63 строки
2.5 KiB
JavaScript

var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
import * as React from 'react';
import * as ReactDom from 'react-dom';
import { Version } from '@microsoft/sp-core-library';
import { BaseClientSideWebPart, PropertyPaneTextField } from '@microsoft/sp-webpart-base';
import * as strings from 'KendoReactSpfxWebPartStrings';
import KendoReactSpfx from './components/KendoReactSpfx';
var KendoReactSpfxWebPart = (function (_super) {
__extends(KendoReactSpfxWebPart, _super);
function KendoReactSpfxWebPart() {
return _super !== null && _super.apply(this, arguments) || this;
}
KendoReactSpfxWebPart.prototype.render = function () {
var element = React.createElement(KendoReactSpfx, {
description: this.properties.description,
context: this.context
});
ReactDom.render(element, this.domElement);
};
KendoReactSpfxWebPart.prototype.onDispose = function () {
ReactDom.unmountComponentAtNode(this.domElement);
};
Object.defineProperty(KendoReactSpfxWebPart.prototype, "dataVersion", {
get: function () {
return Version.parse('1.0');
},
enumerable: true,
configurable: true
});
KendoReactSpfxWebPart.prototype.getPropertyPaneConfiguration = function () {
return {
pages: [
{
header: {
description: strings.PropertyPaneDescription
},
groups: [
{
groupName: strings.BasicGroupName,
groupFields: [
PropertyPaneTextField('description', {
label: strings.DescriptionFieldLabel
})
]
}
]
}
]
};
};
return KendoReactSpfxWebPart;
}(BaseClientSideWebPart));
export default KendoReactSpfxWebPart;
//# sourceMappingURL=KendoReactSpfxWebPart.js.map