1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    7
    Vote Rating
    1
    Ismailp is on a distinguished road

      0  

    Default Unanswered: Render button under tpl

    Unanswered: Render button under tpl


    Hi guys,
    I have this view which basically is a tpl that get data from a store. Under the tpl I want to add a button. Can't seem to get it to work. The only thing visible is the button and the tpl has dissappeared.

    Code:
    Ext.define('GS.view.AuctionDetail', {
        extend: 'Ext.Panel',
        xtype: 'autionDetails',
        alias: 'widget.auctiondetail',
    
    
        config: {
         	styleHtmlContent: true,
         	scroll: 'vertical',
         	title: 'Date',
         	layout: 'vbox',
         	items: [{
         		xtype: 'component',
    	     	tpl: '<div id="company-info">'+
    	     			'<div class="content heading">'+	 
    		     			'{name}'+
    		     			'<p class="details">{orgnr}</p>'+
    		     		'</div>'+
    	     		 
    		     		'<div class="content">'+
    	     		 		'<table><tbody><tr><td>{rating}</td><td>{turnover}</td><td>{amount}</td></tr></tbody><tfoot><tr><td><p class="details">Rating</p></td><td><p class="details">Omsättning</p></td><td><p class="details">Uppskattat belopp</p></td></tr></tfoot></table>'+
    	     		 	'</div>'+
    	     		 '</div>'
    	     },{
    	     	xtype: 'button',
    	     	text: 'click me'		
         	}]
         	   
        }
    });
    Thanks for your help!

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Answers
    102
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Maybe you should set some size information on the top component.

  3. #3
    Sencha User bluehipy's Avatar
    Join Date
    Mar 2010
    Location
    Romania
    Posts
    606
    Answers
    66
    Vote Rating
    26
    bluehipy will become famous soon enough bluehipy will become famous soon enough

      0  

    Default


    and be sure you set some data for the templatizied component or the tpl will never get parsed

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi