Results 1 to 2 of 2

Thread: Ext.ModelManager

  1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    Buenos Aires, Argentina
    Posts
    45
    Vote Rating
    2
      0  

    Default 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
    6,154
    Answers
    501
    Vote Rating
    249
      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 human resources manager: fabienne.bell@sencha.com

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
  •