Serenity: Can麓t seem to hide Default Category

Created on 23 Jun 2017  路  5Comments  路  Source: serenity-is/Serenity

How to hide the default category from dialogs ?

Most helpful comment

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

All 5 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kilroyFR picture kilroyFR  路  3Comments

ahsansolution picture ahsansolution  路  3Comments

ga5tan picture ga5tan  路  3Comments

JohnRanger picture JohnRanger  路  3Comments

GitHubOrim picture GitHubOrim  路  3Comments