Skip to content

Instantly share code, notes, and snippets.

@mattbrailsford
Last active August 29, 2015 14:15
Show Gist options
  • Save mattbrailsford/59c22540b7b1b2a88fc7 to your computer and use it in GitHub Desktop.
Save mattbrailsford/59c22540b7b1b2a88fc7 to your computer and use it in GitHub Desktop.
Example of creating a dropdown list paramter editor for Umbraco 7
{
propertyEditors: [
{
alias: "ButtonStylePicker",
name: "Button Style Picker",
editor: {
view: "dropdown"
},
isParameterEditor: true,
defaultConfig: {
"items" : [
{ id:"grey", value:"Grey" },
{ id:"green", value:"Green" },
{ id:"orange", value:"Orange" }
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment