Here is the controller I want to get
Ext.define('GS.controller.PickStorageController', {
extend: 'Ext.app.Controller',
id: 'pickStorageControl',
In the launch function I made it print its id
launch: function()
{
console.log(this.id);
},
Here is the output: pickStorageControl
In my code, (after all of the launch functions for controllers are done) I have this: document.getElementById('pickStorageControl'); Which is apparently null.
How do I fix this??
Before you say that I should be using refs and controls, I need it to work this particular way for my plans to be executed later…
for get object of controller use this code
It will give you controllers object