jQWidgets Forums

jQuery UI Widgets Forums Navigation Tree What is the originalTitle Property?

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

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

  • gyuha
    Participant

    Hi,
    I can’t speak english very well.. but I need your help.

    //HTML
    <div id='jqxTree'>
    </div>
    <input type="button" style="margin: 10px;" id="jqxbutton" value="Get item" />
    
    // JAVASCRIPT
    var source = [
                    { label: "Item 1", expanded: true, items: [
                        { label: "Item 1.1" },
                        { label: "Item 1.2", selected: true }
                    ]
                    },
                    { label: 'asdfa\"\"sdf' },
                    { label: "Item 3" },
                    { label: "Item 4", items: [
                        { label: "Item 4.1" },
                        { label: "Item 4.2" }
                    ]
                    },
                    { label: "Item 5" },
                    { label: "Item 6" },
                    { label: "Item 7" }
                ];
                // Create jqxTree.
                $('#jqxTree').jqxTree({ source: source, height: '300px', width: '300px' });
       $("#jqxbutton").jqxButton({
           theme: 'energyblue',
           width: 200,
           height: 30
       });
       $('#jqxbutton').click(function () {
           var element = $('#jqxTree').jqxTree("getSelectedItem");
           var item = $('#jqxTree').jqxTree('getItem', element);
    
           alert(item.originalTitle);
           alert(item.label);
       });

    when open first alert, i can see the next message ‘asdfa””sdf’.
    but, second alert, i can see the next message ‘asdfa’.

    my question is below.
    First, is that a bug?.
    Second, There is not problem, when i use originalTitle Property?.


    ivailo
    Participant

    Hi gyuha,

    There is no problem to be used originalTitle property.

    Best Regards,
    Ivailo Ivanov

    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.