How to hide the default category from dialogs ?
just tweak the .less file. You should be able to have the category element be hidden by tweaking it there.
Any tip on how to ?
Just plain old CSS like this one can do the trick for section with ref like "#FichaProjeto_Projetos_ProjetosDialog8_Category1"
Code:
[href^='#FichaProjeto_Projetos_ProjetosDialog8_Category1']{
visibility: hidden;
height: 0px;
}
Think of .less as .css on steroids. .less just lets you be more modular.
Another 'cheat' to do it is to simply use something like: this.element.find(".category-title:contains('" + categoryName + "')").hidden(true); in the dialog.ts and simply add it to the onOpen()
Another way to do it, it this on your xyzDialog.ts
this.form.SomeField.element.closest('.category').toggle(false);
You took some filed under ther category you want and toggle de category to false
hope it helps
Most helpful comment
Another way to do it, it this on your xyzDialog.ts
You took some filed under ther category you want and toggle de category to false
hope it helps