Replies: 1 comment 26 replies
-
I look forward to hearing how this goes. 👍 |
Beta Was this translation helpful? Give feedback.
26 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just a generic question before trying out too much.
I'd like to subclass UnicornView - to create another "template" for a component. Example: I'd like to create a component that has support for model editing, like a ModelView, but with Unicorn. I have a PolymorphicModel that has similar child models - a block on a website, each with slightly different additional fields.
I want to edit all those blocks in one View. Now I want to create a Unicorn component as base for all blocks to edit them.
Is it possible/useful to subclass UnicornView further? Like:
is that a bad idea?
I am thinking further, and creating a "generic" UnicornView that createst its fields and their corresponding form fields dynamically.
@adamghill Just wanted to know you opinion about that before I start something stupid that is not possible with Unicorn...
Beta Was this translation helpful? Give feedback.
All reactions