Results 1 to 3 of 3

Thread: more than one instances of Controller

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Mumbai , India
    Posts
    36
    Answers
    1
    Vote Rating
    0
      0  

    Default more than one instances of Controller

    Hi
    I have created a custom component which takes a json and creates a view.that component is a controller which I export and import as a behavior in toolbox.
    I want to use that Custom component more than once in my view but controller is a singleton class then is there any way to create multiple instances of my view?
    Thanks.

  2. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,023
    Answers
    3976
    Vote Rating
    1334
      0  

    Default

    You just need to rethink how you are doing it. A controller can only be created once but views can be created multiple times.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Location
    Mumbai , India
    Posts
    36
    Answers
    1
    Vote Rating
    0
      0  

    Default

    I know I can create my custom component as view but there are some more things which I want to do while creating a comp like I want to create store and model dynamically for that view which I can achieve using controller.

Posting Permissions

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