1. #1
    Sencha User
    Join Date
    Nov 2008
    Posts
    7
    Vote Rating
    0
    jjh is on a distinguished road

      0  

    Question NestedList - getItemTextTpl override

    NestedList - getItemTextTpl override


    How do you override functions in Sencha Designer? Specifically I'm trying to override the getItemTextTpl function on a NestedList. I don't see that function listed.

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,306
    Vote Rating
    125
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      1  

    Default


    We are working on formal support for overriding functions.

    For now you will need to make your NestedList a top level component. (You can promote it if it isn't there already.) You will then be able to add a BasicFunction to it. You can then match the name and params and write your own implementation of getItemTextTpl.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Nov 2008
    Posts
    7
    Vote Rating
    0
    jjh is on a distinguished road

      0  

    Default


    Thanks, I had tried adding a function but must have been doing something incorrectly. It is working now.

Thread Participants: 1