Call functions from views to another EXTJS file?

0

I am creating a form in EXTJS 3 and I want to separate stores, functions and views.

I would like that in the view when pressing an event, it calls a function, but that function is in another file and that way it is imported. The same thing I want to do with the stores.

Although in the stores the route is indicated in the AJAX, I do not know how to do it for the functions.

How can you use those files in those ways (modulately)? By some extend? Does it require?

    
asked by user3565613 24.07.2017 в 17:49
source

1 answer

0

In the extend you add the parent controller path so you can see all the functions it contains, and to call the functions you just add

this.nombreDeFuncion()

You can also pass parameters, or you can also declare a Singleton and the functions or variables become global.

    
answered by 18.09.2017 в 17:16