1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    Buenos Aires, Argentina
    Posts
    39
    Vote Rating
    1
    ccrosetti is on a distinguished road

      0  

    Default Unanswered: Ext.ModelManager

    Unanswered: Ext.ModelManager


    Hi, am I reading old docs?

    Ext.ModelManager.create(...) returning void?

    Thie text below is from Ext JS 4 docs.


    Methods

    Ext.ModelManager
    view source

    create( Object data, String name, Number id) : void

    Creates a new instance of a Model using the given data.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,417
    Answers
    435
    Vote Rating
    201
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


    Here's where create is documented from Sencha's website:
    http://docs.sencha.com/extjs/4.2.1/#...-method-create

    If your model looked like:
    Code:
    Ext.define('MyApp.model.MyModel', {
        extend: 'Ext.data.Model',
        fields: ['foo', 'bar']
    });
    You'd create an instance like:
    Code:
    MyApp.model.MyModel.create({
        foo: 'foo value',
        bar: 'bar value'
    });
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

Thread Participants: 1

Tags for this Thread