RSSAmplifier

Stuart Ashworth - Developer, Consultant & Trainer · Mar 30, 2017

How to load a model with a custom ID Property

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

Ext JS Models ( Ext.data.Model class) defaults to having an ID property named id . This field will be automatically created for you and be mapped to the id field in your incoming data. By knowing where the unique key for the model lies we can make use of some handy methods on the model, such as getId , and findById on an Ext.data.Store instance. In this snippet we can see that 3 fields are created…

Read on stuartashworth.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.