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
    Sencha - Community Support Team jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,337
    Answers
    101
    Vote Rating
    75
    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
    604
    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

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