formio / angular-material

JSON powered forms for Angular Material
https://form.io
MIT License
45 stars 39 forks source link

[BUG] Rendering angular html template #22

Open AndrejCoder opened 4 years ago

AndrejCoder commented 4 years ago

Hello, dear developers. I create custom angular material component - Panel. Add angular decorator with template. But this template dont rendered. Rendered standard html from Panel component.

Code:

code

Render:

html

travist commented 4 years ago

In your form that is being rendered... what is the "type" of the component? This would only work if you were rendering a component with a type of "custom-panel" like this...

{
  "type": "custom-panel"
}

instead of this...

{
   "type": "panel"
}
AndrejCoder commented 4 years ago

Of course I use { "type": "custom-panel" }

I work with your demo project and refactor it. If you try it too, you take wrong result too...

AndrejCoder commented 4 years ago

The problem is still relevant.

CustomComponent.ts

cc

app.component.ts

ac

Render

r

travist commented 4 years ago

I do not know off the top of my head. This would need to be assigned to a developer to investigate, and from the looks of it is not a high priority item. If you would like to pay to expedite resolution, then please send a message to support@form.io and we can get that setup for you.

enigmatic commented 4 years ago

is this a duplicate of https://github.com/formio/angular-material-formio/issues/3? I have a solution posted there