jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts

  • Philbaney
    Participant

    Thanks Yavor

    Thats exactly what I needed to do.


    Philbaney
    Participant

    Hi Yavor

    Thanks for this, its certainly helped with my problem. I now get the progress bar rendered in each item, but when I try to add the value

    itemRenderer: function (element, item, dataAdapter)
    {

    var progressBar= document.createElement(‘div’);
    progressBar.classList.add(‘progressBar’);
    element[0].appendChild(progressBar);
    $(element).append(progressBar);

    setTimeout(() => {
    $(“.progressBar”).jqxProgressBar({ width: 200, height: 10, value: dataAdapter.progress});
    alert(dataAdapter.progress);
    }, 100);

    $(element).find(‘.jqx-kanban-item-color-status’).html(‘<span style=”line-height: 23px; margin-left: 5px; color:white;”>’ + dataAdapter.text + ‘</span>’);
    },

    My alert shows each value correctly, but the progress bars all use the value entered for the last one.


    Philbaney
    Participant

    Unfortunately, this doesn’t answer my question. This is about adding widgets to the content space in the widget item. According to the API reference, the source item has a property ‘content’ which “Could be filled with text/images/widgets etc”. I can add text,images etc. to this easily, but how do I add a widget???

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