Custom grid editor using existing datatype editors.
Greetings Umbracians,
After 4+ months of learning umbraco on the job, I have finally stumbled onto something neither the forum, the docs or my boss have a (partial) answer to.
I want to make a grid editor and set out with a simple enough design. A text box and a dropdown with a color.
Now i want to change the textarea i have by an existing RTE and the select by a color picker.
If any of you could point me in the direction of a tutorial i might have missed or help me understand how it all works, I would really appreciate it.
Below is what i currently have.
All the code currently resides in
Solution\WebProject\app_plugins\GridManuals
Depends if you really really want to create your own property editor, or go for the MUCH easier route of using doctype grid editor or leblender where you could do what you want without any backoffice code.
Ian is correct. Those two packages are the simple solution. If you do want to go down the alternative route then the colour picker you'll probably need to break out some Angular skills for.
The RTE is a bit simpler, just replace your textarea with this:
Seems simple enough, is there a list somewhere that shows this kind of code for other standard umbraco editors?
I might eventually use one of the 2 packages but it's always nice to understand how things work.
Since umbraco already has some easy reusable code available like the snippet you posted above it would be a shame not to use it right? Especially since the only reason why would be: the documentation is lacking and there is a package that creates these things for you...
Custom grid editor using existing datatype editors.
Greetings Umbracians,
After 4+ months of learning umbraco on the job, I have finally stumbled onto something neither the forum, the docs or my boss have a (partial) answer to.
I want to make a grid editor and set out with a simple enough design. A text box and a dropdown with a color.
Now i want to change the textarea i have by an existing RTE and the select by a color picker.
If any of you could point me in the direction of a tutorial i might have missed or help me understand how it all works, I would really appreciate it.
Below is what i currently have.
All the code currently resides in Solution\WebProject\app_plugins\GridManuals
Package.manifest
}
Super basic controller (action.Controller.js)
});
Editor (ActionEditor.html)
Depends if you really really want to create your own property editor, or go for the MUCH easier route of using doctype grid editor or leblender where you could do what you want without any backoffice code.
Ian is correct. Those two packages are the simple solution. If you do want to go down the alternative route then the colour picker you'll probably need to break out some Angular skills for.
The RTE is a bit simpler, just replace your textarea with this:
Seems simple enough, is there a list somewhere that shows this kind of code for other standard umbraco editors?
I might eventually use one of the 2 packages but it's always nice to understand how things work.
Since umbraco already has some easy reusable code available like the snippet you posted above it would be a shame not to use it right? Especially since the only reason why would be: the documentation is lacking and there is a package that creates these things for you...
Yes and no. It's here: https://our.umbraco.org/apidocs/ui/#/api
But it's old and out of date as best I can tell.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.