MVC In Sencha Touch
Upcoming SlideShare
Loading in...5
×
 

MVC In Sencha Touch

on

  • 840 views

This ppt gives a breif description about how MVC is done in Sencha Touch Mobile Applications

This ppt gives a breif description about how MVC is done in Sencha Touch Mobile Applications

Statistics

Views

Total Views
840
Views on SlideShare
835
Embed Views
5

Actions

Likes
1
Downloads
17
Comments
1

2 Embeds 5

http://www.slashdocs.com 3
http://www.docshut.com 2

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

MVC In Sencha Touch MVC In Sencha Touch Presentation Transcript

  • MVC IN SENCHA TOUCH By, Amith
  • Why MVC?
  • What‟s MVC?
  •  Small Talk 80 introduces MVC Model View Controller
  • Model Loads and manages the application data Usually in response to request from the View
  • View Manages the display of information and UI controls
  • Controller Listens for input from the user , updates Model and View
  • Model Table +Insert() +update() +delete()
  • View
  • Controller
  • ModelExt.define(„MyApp.model.User‟,{ extend:‟ext.data.model‟, fields:[ „name‟, „email‟, „password‟ ]});
  • ViewExt.define(‘MyApp.view.Info’,{ extend:’Ext.Panel’, config:{ html:’this is such a good example’ }});
  • ControllerExt.define(„MyApp.controller.Users‟,{ extend:‟ext.app.Controller‟, init:function(){ this.control({ „button‟:{ tap:function(){ alert(“you have tapped a button”); } } }); },});
  • File Structure
  • Live Code* *Might end in a disaster..!!!
  • Questions…?
  • Thank you..!