Results 1 to 5 of 5

Thread: How use controllers in Sencha Designer

  1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
      0  

    Default How use controllers in Sencha Designer

    Hello
    I'm looking fordocumentation and /ora tutorial onmanagementcontrollersinSenchaDesigner.Can youhelp me?

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    We are working on Designer specific tutorials regarding MVC and especially controllers.

    For now, I'd recommend reviewing the Ext and Touch documentation regarding these topics:

    Ext
    http://docs.sencha.com/ext-js/4-0/#!/guide/mvc_pt1
    http://docs.sencha.com/ext-js/4-0/#!/guide/mvc_pt2
    http://docs.sencha.com/ext-js/4-0/#!/guide/mvc_pt3

    Touch
    http://docs.sencha.com/touch/2-0/#!/guide/controllers
    Aaron Conran
    @aconran

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
      0  

    Red face

    Thanks for your help
    I'll read this documentation.

  4. #4
    Touch Premium Member
    Join Date
    Jul 2009
    Posts
    23
    Vote Rating
    1
      0  

    Default

    nice to hear you work on that

    but i only come close to the functionalities taken from "guide to controllers".

    in the guide is said to add a ref in the config.
    so i done and and added a basicfunction :
    config: {
    views: [
    'MyPanel'
    ],
    refs: {
    btn_1: '#btn_1'
    }
    }, doWhat: function() {
    alert('doWhat');
    }



    next i want to add a control to the config (like you mentioned thats the sister of refs).
    how do i do this to reach:

    config: {
    views: [
    'MyPanel'
    ],
    refs: {
    btn_1: '#btn_1'
    },
    control:{

    btn_1:{ tap:'doWhat'}}, }, doWhat: function() {
    alert('doWhat');

    }


    perhaps im on a wrong way?!
    or is there a other way to trigger the function in controller?

    regards

  5. #5
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,487
    Vote Rating
    146
      0  

    Default

    Add a controller action
    Aaron Conran
    @aconran

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •