I want to create custom web part property in SPFX web part.
I am referring GitHub "sp-dev-fx-webparts-master" and other reference links...
in that reference, webpart.ts file contain "get propertyPaneSettings()" method and in my environment webpart.ts file by default contain "getPropertyPaneConfiguration()" method.
so, is there any difference between those method or both are same ?
reference link code.
protected get propertyPaneSettings(): IPropertyPaneSettings {
return {
pages: [
{
header: {
description: strings.PropertyPaneDescription
},
groups: [
{
groupName: strings.BasicGroupName,
groupFields: [
PropertyPaneTextField('description', {
label: strings.DescriptionFieldLabel
})
]
}
]
}
]
};
}
My Web part Code.
protected getPropertyPaneConfiguration(): IPropertyPaneConfiguration {
return {
pages: [
{
header: {
description: strings.PropertyPaneDescription
},
groups: [
{
groupName: strings.BasicGroupName,
groupFields: [
PropertyPaneTextField('description', {
label: strings.DescriptionFieldLabel
})
]
}
]
}
]
};
}