remove icon from mass action dropdown

  • 1
  • Question
  • Updated 7 months ago
  • Answered
Is it possible to remove the icons from a tables mass-action dropdown menu? I tried clearing out the icon choice and it still sets it to the previously chosen mass action.
Photo of Jerry

Jerry

  • 1,150 Points 1k badge 2x thumb
  • like a carrot

Posted 7 months ago

  • 1
Photo of Mike Dwyer

Mike Dwyer

  • 3,390 Points 3k badge 2x thumb
Doesn't look like you can even cancel it out in XML. Unless a better answer is submitted, you might want to use the ui-silk-shading icon, which might be close to invisible as a mass-action icon.
Photo of mB Pat Vachon

mB Pat Vachon, Champion

  • 42,714 Points 20k badge 2x thumb
You'd have to target it with CSS.


.nx-massactions .ui-icon-triangle-1-s {
display: none;
}
Photo of Jerry

Jerry

  • 1,150 Points 1k badge 2x thumb
so close, that removes the triangle from the dropdown. I'd like to keep that but remove the icon next to the action label. You gave me everything I needed though, here is what I am doing.
 #UAUpdateTable is the Unique Id of the table the mass actions are on.

#UAUpdateTable .nx-massactions .nx-actionselect-dropdown-item .sk-icon-table-edit {
    display: none !important;
}
#UAUpdateTable .nx-massactions .nx-actionselect-dropdown-item .sk-icon-magic {
    display: none !important;
}