Results 1 to 2 of 2

Thread: XTemplate component width

  1. #1
    Sencha User
    Join Date
    Sep 2017
    Posts
    3

    Default XTemplate component width

    I'd like to get a component width within the xtemplate. Currently im getting this warning message:

    "XTemplate evaluation exception: this.getWidth is not a function"

    How can i get a component width within the template? (Extjs 6.x)

  2. #2
    Sencha User
    Join Date
    Jun 2017
    Posts
    25
    Answers
    1

    Default

    I think what you're asking is: how can you get a reference to the components width from within the component config object?

    To the best of my knowledge (which is limited), you won't be able to use getWidth() until after the component is rendered.

    Maybe if you post some of your code, we can get a better idea of what it is you're asking.

Similar Threads

  1. Ext JS Component within XTemplate
    By wadhahjebri in forum Ext JS 6.x Q&A
    Replies: 2
    Last Post: 5 May 2016, 9:26 AM
  2. [FIXED] Column width greater than grid width crash the component
    By sha.zylinc in forum Ext JS 6.x Bugs
    Replies: 2
    Last Post: 30 Nov 2015, 8:39 AM
  3. How to change Height and Width of XTemplate
    By rahulcs in forum Community Discussion
    Replies: 6
    Last Post: 2 Jul 2012, 1:10 AM
  4. how to add Component into XTemplate
    By nabulaer in forum Sencha Touch 1.x: Discussion
    Replies: 4
    Last Post: 2 Nov 2011, 2:46 AM
  5. XTemplate with Ext component
    By gmanraj in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 3 Oct 2010, 9:37 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •