1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
    ldc is on a distinguished road

      0  

    Default How use controllers in Sencha Designer

    How use controllers in Sencha Designer


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

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,445
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      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
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    6
    Vote Rating
    0
    ldc is on a distinguished road

      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
    dschano is on a distinguished road

      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 - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,445
    Vote Rating
    129
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    Add a controller action
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 2