Skip to content

Instantly share code, notes, and snippets.

@chrisobriensp
Last active February 12, 2017 19:23
Show Gist options
  • Save chrisobriensp/9f2298765fd976dad8960af24fdf448a to your computer and use it in GitHub Desktop.
Save chrisobriensp/9f2298765fd976dad8960af24fdf448a to your computer and use it in GitHub Desktop.
An extract showing the Choice Group control you can use in SPFx web part properties (from getPropertyPaneConfiguration() method) - used here in 'standard' mode without images.
PropertyPaneChoiceGroup('layoutProp', {
label: 'Choices',
options: [
{ key: '2Cols', text: 'Two columns' },
{ key: '3Cols', text: 'Three columns', checked: true },
{ key: 'Horizontal', text: 'Horizontal' }
]
}),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment