@pnp/spfx-property-controls
Version:
Reusable property pane controls for SharePoint Framework solutions
42 lines • 1.08 kB
TypeScript
import { IPropertyFieldListPickerPropsInternal } from './IPropertyFieldListPicker';
import { IDropdownOption } from '@fluentui/react/lib/Dropdown';
/**
* PropertyFieldListPickerHost properties interface
*/
export interface IPropertyFieldListPickerHostProps extends IPropertyFieldListPickerPropsInternal {
onChange: (targetProperty?: string, newValue?: any) => void;
}
/**
* PropertyFieldListPickerHost state interface
*/
export interface IPropertyFieldListPickerHostState {
loadedLists: ISPLists;
results: IDropdownOption[];
selectedKey?: string;
errorMessage?: string;
}
/**
* Defines a collection of SharePoint lists
*/
export interface ISPLists {
value: ISPList[];
}
/**
* Defines a Content Type
*/
export interface ISPContentType {
StringId: string;
}
/**
* Defines a SharePoint list
*/
export interface ISPList {
Title: string;
Id: string;
BaseTemplate: string;
RootFolder: {
ServerRelativeUrl: string;
};
ContentTypes: Array<ISPContentType>;
}
//# sourceMappingURL=IPropertyFieldListPickerHost.d.ts.map