This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 11 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Multi-Line Button? #26624

    DogmaRaider
    Member

    Al the demo examples show a single line button. Any way to make a multi-line button? I’ve tried to force it with BR but the graphic surrounding the “butt” appears for each line and does not surround the text as a single block.

    <script type="text/javascript">
    $(document).ready(function() {
    // Create custom button
    $('#jqxButton').jqxButton({
    width: '100%'
    });
    });
    </script>
    <a href="index.html" id="jqxButton">This is a very long button text that I want to appear on two or more lines depending on the container.</a>

    Thanks in advance!

    DogmaRaider

    Multi-Line Button? #26662

    Dimitar
    Participant

    Hello DogmaRaider,

    To achieve this, please initialize your jqxButton from a button HTML element. For the link functionality to work, bind on the click event and change the window location, i.e.:

    $("#jqxButton").on('click', function () {
    window.location = "http://www.jqwidgets.com/";
    });

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.