iconHTML position for button/dropdown

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kharg
    Senior Member
    • Jun 2021
    • 410

    iconHTML position for button/dropdown

    It would be good to have a parameter to place the iconHTML to the right of the text for buttons/dropdown options,

    as of now the icon is always on the left unless you use a workaround like having an empty label and placing the label text before the tag inside the iconHTML.

    Click image for larger version

Name:	immagine_2022-04-05_110251.png
Views:	259
Size:	4.8 KB
ID:	79710
  • emillod
    Active Community Member
    • Apr 2017
    • 1405

    #2
    It should be possible through CSS i think.

    Comment

    • murray99
      Member
      • Jan 2017
      • 57

      #3
      Not sure if this helps but in my clientdef Entity.json . the html property allows you to put anything in any order on in the button:

      Code:
      {
      "menu": {
      "list": {
      "buttons": [
      "__APPEND__",
      {
      "label": "Sync",
      "name": "courseSync",
      "action": "courseSync",
      "html": "<span class='fas fa-sync fa-sm'></span> Sync",
      "style": "default",
      "acl": "edit",
      "aclScope": "Course",
      "data": {
      "handler": "custom:course-sync-handler"
      },
      "initFunction": "initSyncHandler"
      }
      ]
      }
      }
      }

      Comment


      • Kharg
        Kharg commented
        Editing a comment
        The "html" parameter looks like a good workaround, thank you.
    Working...