zoukankan      html  css  js  c++  java
  • tabPanel控件示例

     var tabpanel_order_list=new Ext.TabPanel({
            activeTab:0,    //设置默认选择的选项卡
          //   renderTo:'tabpanel',
            region:'center',
            '100%',
            autoDestroy : false,
            height:'100%',
            items:[
                {
                    title:"<span style='font-size:14px;'>第一个选项</span>",
                    // html:"列表",
                    id : 'tab_list',
                    items:[panel_order_list]
                }
            ]
        });
       
         viewport_order_list = new Ext.Viewport({
                enableTabScroll : true,
                layout:'border',
                items:[ tabpanel_order_list]
             });
      }
      //--------------------------------------------------------------设置第二个TabPanel----修改tab的表单
      function loadTab_update_list(){
          
           tabpanel_order_list.add({
                     title:"<span style='font-size:14px;'>第二个选项update</span>",
                    id : 'tab_update_list',
                     closable: true ,
                    items:[updateForm]
           });
      } 
      function loadTab_detail_list(){
         
           tabpanel_order_list.add({
                     title:"<span style='font-size:14px;'>第三个选项detail</span>",
                    id : 'tab_detail_list',
                     closable: true ,
                    items:[detailForm]
           });
      } 

    切换选项卡: tabpanel_order_list.setActiveTab('tab_update_list');

  • 相关阅读:
    Guid ToString 格式
    SQL Server 自增字段归零
    一些被触动的话
    【简易教程】在网站上养一只萌咔咔的小仓鼠
    SQL分页语句
    WPF使用System.Windows.SystemParameters类获得屏幕分辨率
    WPF编程学习——窗口
    C# .net WPF无边框移动窗体
    WPF 4 Ribbon 开发 之 快捷工具栏(Quick Access Toolbar)
    转 遗传算法简介
  • 原文地址:https://www.cnblogs.com/summer520/p/3118817.html
Copyright © 2011-2022 走看看