小编zie*_*ini的帖子

隐藏和显示项目

我这次的问题是让一个项目出现并消失.我知道它完成了hide(),show()但我不知道怎么做?这是我的代码.当我选择"selectfield"中的"约会"时,我想让xtype出现:"datepickerfield"

App.views.Bankingrendezvous = Ext.extend(Ext.Panel, {

items: [{
xtype: 'formpanel',
id: 'form',
fullscreen: true,
scroll: 'vertical',
items: [{

       xtype: 'fieldset',
       title: 'Information & Appointment',
    },
    {
        xtype: 'selectfield',
        id: 'request',
        label: 'You need',
        options: [ 
        {   
            text: 'Appointment',
            value: 'Appointment'
        },
        {   
            text: 'Information',
            value: 'Information',

        }]



    },
    {
xtype: "datepickerfield",
id: "startDate",
label: "when",
picker: { yearFrom: 2012, yearTo: 2020} 

    },}]
     }]
     });
    Ext.reg('Bankingrendezvous', App.views.Bankingrendezvous);
Run Code Online (Sandbox Code Playgroud)

谢谢.我试着说:

  {
xtype: "datepickerfield",
id: "startDate",
label: "when",
picker: { yearFrom: …
Run Code Online (Sandbox Code Playgroud)

extjs datafield sencha-touch

3
推荐指数
1
解决办法
3万
查看次数

在sencha触摸地图中的标记

我不能使用sencha touch在我的谷歌地图上放置任何标记.此代码正常工作:

Ext.setup({
    tabletStartupScreen: 'tablet_startup.png',
    phoneStartupScreen: 'phone_startup.png',
    icon: 'icon.png',
    glossOnIcon: false,
    onReady: function() {
        var position = new google.maps.LatLng(36.830618975720746,10.1987886428833);
        var position2 = new google.maps.LatLng(33.7580276912933,10.848312377929688);
        var map = new Ext.Map({
            mapOptions: {
                center: position
            },
            listeners: {
                delay: 500,
                afterrender: function(){
                    var marker = new google.maps.Marker({
                        position: position,
                        title: 'helooooooo',
                        map: map.map
                    });
                    var marker2 = new google.maps.Marker({
                        position: position2,
                        title: 'helooooooo',   
                        map: map.map
                    }); 
                }
            }
        });
        var icons = new Ext.TabPanel({
            fullscreen: true,
            items: [{
                iconCls: 'bookmarks',
                title: 'page …
Run Code Online (Sandbox Code Playgroud)

google-maps-markers sencha-touch

2
推荐指数
1
解决办法
3681
查看次数