Facility Control

 View Only
  • 1.  Word Wrap on button?

    Posted 11-15-2018 23:32
    Is there such a thing as word wrap on buttons in dashboard? I know you can use TOP LINE
    BOTTOM LINE. I have a setup where the operator lists some parameters and these rename button on a global list. Problem is: if the button name is a little long, it either cuts off the text or resizes the button. I don't want that.

    Thanks.



    Mal


  • 2.  RE: Word Wrap on button?

    Posted 11-26-2018 20:42
    Yes, use the html tag around the text (without a break), it will cut the text automatically if it is too long.

    Regards,
    #DashBoard


  • 3.  RE: Word Wrap on button?

    Posted 11-27-2018 05:19
    thanks Inehme. However, I want the person setting things up to just be able to just type the name in and everything is done behind the scenes. Maybe I can write a quick script that would add the html tag to the input string.
    #DashBoard


  • 4.  RE: Word Wrap on button?

    Posted 11-27-2018 14:29

    exactly, you can use something like the example below:

    function wrapButtonName(buttonName)
    {
    var wrappedButtonName = "<html>"+buttonName+"</html>";
    return wrappedButtonName;
    }

    Regards,


    #DashBoard