guillotinaweb / ngx-schema-form

HTML form generation based on JSON Schema
MIT License
484 stars 173 forks source link

widget options seems broken #81

Open felixbaral opened 7 years ago

felixbaral commented 7 years ago

Passing parameters to a custom widget doesn't work for me.

I tried the example with tineMCE and created my own widget.

"properties": {
    "pageContent": {
      "type": "string",
      "description": "Page content",
      "widget": {
        "id": "richtext",
        "plugins": "textcolor colorpicker",
        "toolbar": "forecolor backcolor"
      }
    }
  }

I've put a @Input() options : any: in the the Widget's Component. As done by tinyMCE.

Both didn't work. TinyMCE semmes inconfigurable. Could you point out the code where the parameters are assigned? Am I missing something?

fbessou commented 7 years ago

Options should be accessible through the schema.widget property of your widget.