I wanted to make a grid list custom editor using the new Grid Editor in Heartcore but I'm fairly new to web components and I'm not sure if my approach is the right one here..
My editor goal: being able to create a list that may have a title on the left side. The list itself can be ordered or unordered.
2) is there a way to tell that a field is mandatory? I wanted the bullets to be mandatory if the editor is inserted into a grid. The title, on the other hand, is completely optional.
Thank you all :)
edit: please don't mind the ugly code, I was just looking for functionality
Custom Grid Editor
Hello all!
I wanted to make a grid list custom editor using the new Grid Editor in Heartcore but I'm fairly new to web components and I'm not sure if my approach is the right one here..
My editor goal: being able to create a list that may have a title on the left side. The list itself can be ordered or unordered.
This is the component I've created
My questions:
1) am I doing this right or completely wrong?
2) is there a way to tell that a field is mandatory? I wanted the bullets to be mandatory if the editor is inserted into a grid. The title, on the other hand, is completely optional.
Thank you all :)
edit: please don't mind the ugly code, I was just looking for functionality
Ok, a little update. I've done some refactoring in the code and I'me happy with the component itself.
Now, the mandatory field this, I wasn't able to acheive.
I was expecting the JSON schema would help me with this so I've done it like this:
However, I can save the editor in the grid with an empty list (the bullets) field :\ Is this mandatory question unachievable??
is working on a reply...