1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    1
    Vote Rating
    0
    Naveen Kumar D is on a distinguished road

      0  

    Default Grid view like icons in iPhone/iPod touch home screen

    Grid view like icons in iPhone/iPod touch home screen


    Hello All,

    I need to make UI look like having a grid (like apps are displayed in iPhone/iPod touch), I have looked at Ext.gridView, but did not get much info how to do that. Can anyone help me in implementing this.

    Many Thanks,
    Naveen

  2. #2
    Sencha User
    Join Date
    Mar 2010
    Posts
    7
    Vote Rating
    0
    pasinski is on a distinguished road

      0  

    Default


    Hi there.

    Did you have any success in building this layout? I'm doing something similar.

  3. #3
    Sencha User Hanni Sullivan's Avatar
    Join Date
    May 2011
    Location
    Constance, Germany
    Posts
    84
    Vote Rating
    4
    Hanni Sullivan is on a distinguished road

      0  

    Default


    Here is my approach I'm using for this scenario (It was not my idea, somebody posted it here)
    Code:
    Example.View.iPodGridDataView = Ext.extend(Ext.DataView, {
        initComponent: function () {
            var config = {
                store: new Example.Store.iPodGrid(),
                tpl: Example.Template.iPodGrid,
                autoHeight: true,
                multiSelect: false,
                itemSelector: 'div.ipodgrid-wrapper',
                scroll: true
            };
    
            Ext.apply(this, config);
            Example.View.iPodGridDataView.superclass.initComponent.apply(this, arguments);
            this.on('itemtap', this.itemTapHandler, this);
        },
       
        itemTapHandler: function (view, index, item, event) {       
           // Your code here!
        }
    });
    
    Example.Template.iPodGrid = new Ext.XTemplate(
            '<tpl for=".">',
                '<div class="ipodgrid-wrapper">',
                    '<div class="icon-wrapper">',
                        '<img src="resources/images/{Icon}" alt="{Text}" />',
                    '</div>{Text}',
                '</div>',
            '</tpl>'
    );
    
    Ext.regModel('iPodGrid', {
        fields: ['Text', 'Icon']
    });
    and the CSS:

    Code:
    .ipdodgrid-wrapper{
        padding: 15px;
        float: left;
        width: 100px;
        font-size:  0.8em;
        font-weight: bold;
        text-align: center;
        height: 80px;
        opacity: 1;
    }

  4. #4
    Sencha User
    Join Date
    Aug 2011
    Posts
    1
    Vote Rating
    0
    Corundum is on a distinguished road

      0  

    Default


    In order to render this, would it be necessary to call it within an ext.panel?

    I'm new at this, and would appreciate any help at all in implementing the given example.

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