Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// ...
import CustomPanel, { ICustomPanelProps } from "./components/CustomPanel";
import { sp } from "@pnp/sp";
import { autobind, assign } from '@uifabric/utilities';
// ...
const LOG_SOURCE: string = 'CustomFormPanelCommandSet';
export default class CustomFormPanelCommandSet extends BaseListViewCommandSet<ICustomFormPanelCommandSetProperties> {
private panelPlaceHolder: HTMLDivElement = null;
public onInit(): Promise<void> {, 'Initialized CommandSetWithPanelCommandSet');
// Setup the PnP JS with SPFx context
spfxContext: this.context
// Create the container for our React component
this.panelPlaceHolder = document.body.appendChild(document.createElement("div"));
return Promise.resolve();
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment