Added selectedEmojiColor props

This commit is contained in:
thejason40 2022-11-22 16:15:38 +00:00 committed by Hugo Bernier
parent 0d3c8e5b6f
commit 519a7bd9b6
1 changed files with 15 additions and 0 deletions

View File

@ -27,6 +27,7 @@ export interface IReactEmojiReactionRatingWebPartProps {
propertyEnableComments: boolean;
propertyEnableCount: boolean;
propertySelectedColor: string;
propertySelectedEmojiColor: string;
propertyListName: string;
propertyListOperationMessage: string;
}
@ -46,6 +47,7 @@ export default class ReactEmojiReactionRatingWebPart extends BaseClientSideWebPa
enableComments: this.properties.propertyEnableComments,
enableCount: this.properties.propertyEnableCount,
selectedColor: this.properties.propertySelectedColor,
selectedEmojiColor: this.properties.propertySelectedEmojiColor,
listName: this.properties.propertyListName,
displayMode: this.displayMode,
listMessage: this.properties.propertyListOperationMessage,
@ -176,6 +178,19 @@ export default class ReactEmojiReactionRatingWebPart extends BaseClientSideWebPa
iconName: 'Precipitation',
key: 'colorFieldId'
}),
PropertyFieldColorPicker('propertySelectedEmojiColor', {
label: 'Selected emoji background color',
selectedColor: this.properties.propertySelectedEmojiColor,
onPropertyChange: this.onPropertyPaneFieldChanged,
properties: this.properties,
disabled: false,
debounce: 1000,
isHidden: false,
alphaSliderHidden: false,
style: PropertyFieldColorPickerStyle.Full,
iconName: 'Precipitation',
key: 'colorFieldId'
}),
]