jQWidgets Forums

jQuery UI Widgets Forums Getting Started CustomElements and jqxButton

This topic contains 1 reply, has 2 voices, and was last updated by  admin 7 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • CustomElements and jqxButton #97218

    cstff
    Participant

    Testing custom elements I found this, for example:

    In my html I have:

    <jqx-button id=”btn”
    width=”250″
    height=”100″
    template=”danger”
    theme=”web”> Hello
    </jqx-button>

    In my javascript I have

    01 $(function(){
    02 var btn = document.getElementById(‘btn’);
    03 btn.textPosition = “center”;
    04 btn.value = “World”;
    05 });

    The result is a red button with the text World.
    But if I remove the line 3:

    01 $(function(){
    02 var btn = document.getElementById(‘btn’);
    03 // btn.textPosition = “center”;
    04 btn.value = “World”;
    05 })

    The text is keeped as “Hello”. Could be this a bug?
    Browser: Google Chrome v61
    SO: Ubuntu 16.04

    CustomElements and jqxButton #97221

    admin
    Keymaster

    Hi cstff,

    It is and will be resolved in next release. For now, use the following: btn.firstChild.innerHTML = “TEST”;

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com

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

You must be logged in to reply to this topic.