import { IPropertyPaneConfiguration , PropertyPaneSlider , PropertyPaneTextField } from '@microsoft/sp-property-pane' ; import { ILatestProjectsProps , LatestProjects } from 'components/LatestProjects' ; import * as strings from 'PortfolioWebPartsStrings' ; import { BasePortfolioWebPart } from 'webparts/@basePortfolioWebPart' ; export default class LatestProjectsWebPart extends BasePortfolioWebPart < ILatestProjectsProps > { public render ( ) { this . renderComponent < ILatestProjectsProps > ( LatestProjects ) ; } public async onInit ( ) { await super . onInit ( ) ; } public getPropertyPaneConfiguration ( ) { return { pages : [ { groups : [ { groupName : strings . GeneralGroupName , groupFields : [ PropertyPaneTextField ( 'loadingText' , { label : strings . LoadingTextLabel , description : strings . LoadingTextDescription } ) , PropertyPaneTextField ( 'emptyMessage' , { label : strings . EmptyMessageLabel , description : strings . EmptyMessageDescription } ) , PropertyPaneSlider ( 'rowLimit' , { label : strings . RowLimitLabel , min : 5 , max : 15 , step : 1 } ) ] } ] } ] } ; } }