1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    5
    Vote Rating
    0
    ris is on a distinguished road

      0  

    Default load and manage stores in dropdownlists

    load and manage stores in dropdownlists


    beispiel.jpg

    1. i have a problem whit loading store items in a dropdown list what have i to do?
    2. how can i rename the back button text? defaultBackButtonText won't work
    3. in the moment i'm testing it by myself
    4. is there an example to list stores like the example for sencha touch 1.x?

    many examples that i saw are whit entries in the store. i shoud have an empty store for my app. i fill the store at point 4.

    thanks
    eis

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,724
    Vote Rating
    752
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    For the back button text, are you adding items when the navigation view is created? If so then you can do this:

    Code:
    Ext.Viewport.add({
        xtype                 : 'navigationview',
        defaultBackButtonText : 'Somewhere',
        navigationBar         : {
            defaultBackButtonText : 'Somewhere'
        },
        items                 : [
            {
                title : 'Home',
                html  : 'Home'
            },
            {
                title : 'New',
                html  : 'New'
            }
        ]
    });
    Unfortunately the defaultBackButtonText on the navigation view doesn't get set on the navigation bar until after everything so the code above in red will set the defaultBackButtonText at navigation bar creation.

    For dropdown lists... do you mean selectfield otherwise I'm not sure what you are talking about.

    For list stores, so you just want to know how to add data to a store after the store is created?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Feb 2013
    Posts
    5
    Vote Rating
    0
    ris is on a distinguished road

      0  

    Default


    thanks for your fast answer.
    i try it when i'm back. in the viewport i just had that code:
    Code:
    Ext.Viewport.add({
    xclass...
    i'm sorry. yes i meant selectfields.

    yes i would add new (dynamic) data in the localstorage (as new settings for the functions), but the store must have first no entries. the user adds new entries by the first time he use the app

  4. #4
    Sencha User
    Join Date
    Feb 2013
    Posts
    5
    Vote Rating
    0
    ris is on a distinguished road

      0  

    Default


    now its working whit the peace of code from you for the back button text. but i don't understand why the tabbar now is disapeard.

    app.js
    Code:
    Ext.application({
        name: 'Sencha',
    
        controllers: ['Main'],
        views:  ['Main'],
        stores: ['MoreCards'],
    
        launch: function() {
            Ext.Viewport.add({
     xtype                 : 'navigationview',
     defaultBackButtonText : 'Somewhere',
     navigationBar         : {
     defaultBackButtonText : 'Somewhere'
     },
     items                 : [
     {
     title : 'Home',
     html  : 'Home'
     },
     {
     title : 'New',
     html  : 'New'
     }
     ]
     });
    /*Ext.Viewport.add({
                xclass: 'Sencha.view.Main'
            });*/
        }
    });
    main.js
    Code:
    Ext.define('Sencha.view.Main', {
        extend: 'Ext.TabPanel',
        requires: [
            'Sencha.view.Settings',
            'Sencha.view.More',
            'Sencha.view.Search',
            'Sencha.view.Chart'
        ],
    
        config: {
            tabBar: {
                docked: 'bottom',
                layout: {
                    pack: 'center'
                }
            },
            items: [
                { xtype: 'settingscard' },
                { xtype: 'morecard' },
                { xtype: 'chartcard' },
                { xtype: 'searchcard' }
            ]
        }
    });
    am i doing the same misstake like the last time? i mix sencha touch version 1 and 2? or are there different ways to say "you are the titlebar-element. and you are the tabbar-element."?

    maybe i'm stupid or don't know where to read tutorials or hints in the forum? ;-)

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar