Guest User

Untitled

a guest
Nov 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. import './elements'
  2. import { HelloWorld } from './elements/hello-world'
  3. import {
  4. BaseClientSideWebPart, IPropertyPaneConfiguration, PropertyPaneTextField
  5. } from '@microsoft/sp-webpart-base';
  6.  
  7. export default class NgHelloWorldWebPartWebPart extends BaseClientSideWebPart<HelloWorld> {
  8. constructor(){ super(); }
  9. ngElement: HTMLElement;
  10.  
  11. public render(): void {
  12. this.domElement.innerHTML = `<hello-world name="${this.properties.name}"></hello-world>`;
  13. }
  14.  
  15. protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
  16. return {
  17. pages: [{
  18. header: { description: 'Description' },
  19. groups: [
  20. {
  21. groupName: "Options",
  22. groupFields: [
  23. PropertyPaneTextField('name', {
  24. label: "Username",
  25. value: "Rob"
  26. })
  27. ]}]}]};
  28. }
  29. }
Add Comment
Please, Sign In to add comment