Question

J'ai deux contrôleurs, init:

jQuery.Controller.extend('App.Controllers.Init', {  
    onDocument: true  

},{  
    load: function() {  
        //call App.Controllers.Tabs on $('#tabs')  
        //it is not that easy as $('#tabs').tabs() -> Throws: Object doesn't support this property or method  
    }
});

Et tabs:

jQuery.Controller.extend('App.Controllers.Tabs,...

Comment appeler onglets initialisation?

Était-ce utile?

La solution

Vous devez:
$('#tabs').app_tabs()
Il suffit de couper le mot « contrôleur » out. Faire toutes les lettres en minuscules, et des points de changement « » à "_"
Un autre exemple:
définition du contrôleur:
jQuery.Controller.extend('Appname.Controllers.Controllername',...
appeler:
$('#some_id').appname_controllername();

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top