1. #1
    Sencha User cyberwombat's Avatar
    Join Date
    Oct 2011
    Posts
    237
    Answers
    6
    Vote Rating
    2
    cyberwombat is on a distinguished road

      0  

    Default Unanswered: Proper way to access viewport from a card

    Unanswered: Proper way to access viewport from a card


    I have a navigationview for my viewport:

    Code:
    Ext.define('App.view.Viewport', {
        extend: 'Ext.NavigationView',
        xtype: 'viewportview',
    I need to access the viewport from within a card (either the controller or the view - Id like to know how to do both).

    I have created a ref in my card as:

    Code:
    Ext.define("App.controller.Dashboard", {
        extend: "Ext.app.Controller",
        config: {
            refs: {
                'viewport': 'viewportview',
    Now I would like in this case to access the navigationbar of the viewport. I would like to know how to do this from either the controller init() or the matching view onShow() method.

    In the controller init() the call to this.getViewport() returns undefined - I assume the ref is not created then. I then tried Ext.Viewport.getNavigationBar() but that is also undefined and also seems to be a no no as to accessing the viewport.

    So how do I do this in B3?

    Thanks

  2. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Answers
    17
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Viewport is a singleton. Ext.Viewport is a common reference to it.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi