Jump to content

XTamplate example


x11

Recommended Posts

21 hours ago, x11 said:

да, взять уже готовый ваш код и применить здесь

 

11 hours ago, Sherzod said:

Думаю, в любом случае мы не можем применить готовый выше приведенный код, поскольку это не отдельный компонент, а иконка.

Придется модифицировать код.  

1. 

function painted(sender, eOpts) 
{
    sender._tip = Ext.create('Ext.tip.ToolTip', {
        closable: true,
        align: 'tl',
        focusOnToFront: true,
        autoHide: true,
        autoShow: true,
        autoScroll: true
    });
}

2. 

function childtap(sender, location, eOpts)
{
    if (location.sourceElement && location.sourceElement.className == 'far fa-trash-alt') {
        //ajaxRequest(sender, "_tap", [])
        //alert(location.record.data[12]);
        sender._tip.setHtml(location.record.data[12]);
        sender._tip.showByTarget(location.sourceElement);
    }
}

 

  • Thanks 1
Link to comment
Share on other sites

×
×
  • Create New...