Results 1 to 3 of 3

Thread: tagfield displayTpl

  1. #1

    Default tagfield displayTpl

    i have a tagfield and i want to use a template in displayfield. but displayTpl is not working See the example fiddle here.
    Thanks in advance

  2. #2

    Default

    Thanks for replying so earlier. but i want to use template in displayfield and add Image using a class in Textfield of Tagfield. The selected text should have an icon. how can i achieve this.

  3. #3
    Sencha Premium User v1r's Avatar
    Join Date
    Feb 2013
    Location
    Canada
    Posts
    36
    Answers
    1

    Default

    Quote Originally Posted by nehadhiman View Post
    Thanks for replying so earlier. but i want to use template in displayfield and add Image using a class in Textfield of Tagfield. The selected text should have an icon. how can i achieve this.
    Late but this could help others:
    https://fiddle.sencha.com/#fiddle/321c

    The render function that displays the labels horizontally uses Ext.String.encodeHTML to escape HTML entities.
    The idea (Without the user of an override) you can override the template function on the getItemLabel in the afterrender event to not escape HTML.

    You can also customize the list in the combobox using the list `listConfig` configuration.

    Enjoy!
    ---
    Karim Besbes
    'Softineer' at Ubisoft Montreal

Similar Threads

  1. Tagfield: edit record value with tagfield
    By josei in forum Ext 5: Q&A
    Replies: 4
    Last Post: 8 May 2015, 5:40 AM
  2. Replies: 1
    Last Post: 17 Dec 2014, 10:24 AM
  3. Combo DisplayTpl
    By Mteixeira in forum Ext: Q&A
    Replies: 5
    Last Post: 18 Oct 2012, 6:02 AM
  4. displayTpl error
    By Ext4InAction in forum Ext: Discussion
    Replies: 0
    Last Post: 1 Jul 2011, 7:41 AM

Posting Permissions

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