Announcement

Collapse
No announcement yet.

iconHTML position for button/dropdown

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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:	206
Size:	4.8 KB
ID:	79710

  • #2
    It should be possible through CSS i think.

    Comment


    • #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...
    X