remove icon from mass action dropdown

  • 1
  • Question
  • Updated 1 year 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 1 year ago

  • 1
Photo of Mike Dwyer

Mike Dwyer, Champion

  • 4,716 Points 4k 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 Pat Vachon

Pat Vachon, Champion

  • 44,426 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;
}