Draggable / formeo

Drag & Drop Form Builder
http://draggable.github.io/formeo/
MIT License
534 stars 196 forks source link

Remove panels from EditPanel through config #131

Closed charmis closed 6 years ago

charmis commented 6 years ago

Similar to disableAttrs:[] in config object, disabledPanels:[] helps to hide/remove specified panels in EditPanel. eg:

meta: {
          group: 'common',
          icon: 'select',
          id: 'select',
          disabledPanels: ['options']
     }

The above code will hide the Options in EditPanel for field.

Added the new property in meta{} as it is the object using for editor configurations.

kevinchappell commented 6 years ago

Excellent contribution! In the future we should consider moving this setting to editor config rather than formData since panels are only in the editor.