Advertisement
Advertisement

More Related Content

Advertisement

Recently uploaded(20)

2012 09-04 smart devcon - sencha touch 2

  1. Building mobile web applications with Sencha Touch 2 Martin de Keijzer SmartDevCon 4-6 September, Katowice Poland
  2. Introduction 2
  3. About me Martin de Keijzer Dutch web developer Working for Ibuildings PHPBenelux Board Member @Martin1982 http:// www.martindekeijzer.nl 3
  4. The mobile web 4
  5. Apps Languages ‣ Apple: Objective-C ‣ Android: Java ‣ Windows Phone: C# / Visual Basic Distribution Methods Apple: AppStore Android: Market Windows Phone: Microsoft Market 5
  6. Web Apps ‣ Available through the web ‣ Platform independent ‣ Can be transformed to an App-like experience ‣ Can be wrapped as native apps 6
  7. The Sencha Touch way ‣ Building applications, not websites ‣ Pure JavaScript ‣ Touch framework ‣ MV(S)C Paradigm ‣ Based on ExtJS 4 Downloadable from http://www.sencha.com 8
  8. Sencha SDK Tools Rapidly starting 9
  9. Quick start: Sencha Command sencha generate app <name> <path> 10
  10. Quick start: Sencha Command •App •Resources •app.js •.json files •index.html •SDK (DO NOT TOUCH!) 11
  11. Touchin’ the SDK is bad! Extending is ok. 12
  12. Quick Start: Sencha Command Webkit 13
  13. Interface design Setting up views 14
  14. User interface Abstraction of various app ui elements: ‣ containers ‣ panels ‣ tabpanels ‣ carousels ‣ lists ‣ forms ‣ toolbars 15
  15. Creating views app/view/Pictures.js 16
  16. Creating views http://docs.sencha.com 17
  17. Creating views /app.js 18
  18. Creating views app/view/Main.js 19
  19. Creating views 20
  20. Taking control Bootstrapping & Controllers 21
  21. Bootstrapping and Controllers /app.js Final point of bootstrapping, controllers & profiles go first 22
  22. Bootstrapping and Controllers 23
  23. Events Make the component selectable sencha generate controller <name> Create a new controller 24
  24. Events app/controller/PictureTab.js 25
  25. Events app/controller/PictureBox.js 26
  26. Events Querying Predefined events 27
  27. Events app/controller/PictureTab.js 28
  28. Events 29
  29. Data binding and communication 30
  30. Data communication 31
  31. Model Model Field Association Validation 32
  32. Model sencha generate model <name> <property:type,[property:type]...> 33
  33. Model app/model/Talk.js 34
  34. Store Store Model Filter Grouper Sorter 35
  35. Store app/store/Talks.js app.js 36
  36. Proxy Store Proxy Model Reader Writer 37
  37. Proxy app/model/Talk.js 38
  38. Create a list app/view/Talks.js 39
  39. Create a list app.js 40
  40. Create a list app/view/Main.js 41
  41. Data in action! 42
  42. Devicedoesn’t play well with your When an OS profiles app 43
  43. Device profiles Different devices can require different options. Tablet has more screen real estate and can provide more user interaction than a phone. Sencha Touch 2 provides profiles to build concrete implementations of the device functionalities. 44
  44. Profile setup sencha generate profile <name> 45
  45. Profile overriding app/controller/phone/Talks.js app/controller/tablet/Talk.js 46
  46. Profile overriding app/profile/Phone.js 47
  47. Profile overriding Desktop 48
  48. Profile overriding Phone 49
  49. Profile overriding Tablet 50
  50. Your app’s got style! Styling an app 51
  51. Installing Compass gem install compass 53
  52. The scss file Extension: .scss compass compile compass watch 54
  53. The scss file resources/sass/app.scss 55
  54. Compass Variables sdk/resources/ themes/ stylesheets/ sencha-touch/ default/ _variables.scss 56
  55. Compass Mixins 57
  56. Quick Tips •Well documented on http:// docs.sencha.com •Sencha Command •Sencha Architect 2 •Keep your views clean, use controllers! 58
  57. Need another look? http:// www.github.com/ Martin1982/ SmartDevCon 59
  58. QUESTIONS 60
  59. Thank you for listening mdkeijzer@ibuildings.nl @Martin1982

Editor's Notes

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n
  27. \n
  28. \n
  29. \n
  30. \n
  31. \n
  32. \n
  33. \n
  34. \n
  35. \n
  36. \n
  37. \n
  38. \n
  39. \n
  40. \n
  41. \n
  42. \n
  43. \n
  44. \n
  45. \n
  46. \n
  47. \n
  48. \n
  49. \n
  50. \n
  51. \n
  52. \n
  53. \n
  54. \n
  55. \n
  56. \n
  57. \n
  58. \n
  59. \n
  60. \n
  61. \n
Advertisement