Change the size of the button of a file uploader

  • Michael Groß
        Has successfully completed the online course Intermediate (200)
        Has successfully completed the online course Basics (100)
      1 year ago #36630

      Hi everyone,

      is it possible to change the size of the button of a file uploader? I want to only use the button with a icon to upload files but the button is a little bit to small, how can I change it?

      Regards

      Michael

      Jennifer Häfner
          Has successfully completed the online course Intermediate (200)
          Has successfully completed the online course Advanced (300)
          Has successfully completed the online course Basics (100)
          Has successfully completed the online course Advanced (310)
          Has successfully completed the online course Advanced (320)
          Has successfully completed the Intermediate Certification
          Has successfully completed the Advanced Certification
        1 year ago #36691
        Up
        0
        Down
        ::

        Hi Michael,

        To change a widget’s appearance, you can work with CSS classes. In the CSS editor (in the application, click on the tab ‘Other’ to find it), define a new CSS class, for example:

        .largeButton button {
        width: 10rem;
        }

        Then, in the property ‘cssClasses’ of the Uploader, enter your new class ‘largeButton’. If everything works correctly, the appearance changes are already visible in the preview.

        In this case, since the Uploader contains several sub-items, you have to specifically address the button inside the Uploader.

      Viewing 2 posts - 1 through 2 (of 2 total)

      You must be logged in to reply to this topic.