1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    35
    Vote Rating
    0
    r.vanelk is on a distinguished road

      0  

    Default Unanswered: How to set tpl prop of a image?

    Unanswered: How to set tpl prop of a image?


    Code:
    xtype: 'image',
    //src: 'http://www.sencha.com/assets/images/sencha-avatar-64x64.png',
    width: 90,
    height: 90,
    centered: true,
    tpl: '<img src="http://www.url.com/images/_thumb/{image}" />'
    src is working but the tpl property not, {image} is the name of the file.

  2. #2
    Sencha User
    Join Date
    Nov 2007
    Posts
    62
    Answers
    1
    Vote Rating
    0
    ljadrbln is on a distinguished road

      0  

    Default


    Probably you need to create Custom class, wich willbe extended from the Ext.Img

    And here you can provide custom template:
    Code:
        template: [
            {
                tag: 'span',
                reference: 'badgeElement',
                hidden: true
            },
            {
                tag: 'span',
                className: Ext.baseCSSPrefix + 'button-icon',
                reference: 'iconElement',
                hidden: true
            },
            {
                tag: 'span',
                reference: 'textElement',
                hidden: true
            }
        ],
    Hope this helps

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar