1. #1
    Sencha User
    Join Date
    Sep 2011
    Posts
    33
    Vote Rating
    0
    ultra2 is on a distinguished road

      0  

    Default Answered: Is there a way to set up custom getter setter for model fields?

    Answered: Is there a way to set up custom getter setter for model fields?


    Is there a way to set up custom getter setter for model fields?

  2. sure, you can add custom methods in your model definitions.

    example:
    Code:
    getFirstname : function() {
        return this.get('firstname');

  3. #2
    Sencha Premium Member tobiu's Avatar
    Join Date
    May 2007
    Location
    Munich (Germany)
    Posts
    2,695
    Vote Rating
    114
    Answers
    130
    tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all tobiu is a name known to all

      0  

    Default


    sure, you can add custom methods in your model definitions.

    example:
    Code:
    getFirstname : function() {
        return this.get('firstname');
    Best regards
    Tobias Uhlig
    __________

    S-CIRCLES Social Network Engine

Thread Participants: 1