st2中定义左右平板布局
来源:互联网 发布:java工资扣培训费 编辑:程序博客网 时间:2024/04/30 15:52
0.首先下载mvc框架:https://github.com/kostysh/Sencha-Touch-2.0-MVC-test-application-with-NestedList
1.在框架中要在app.js 这个文件中使用:
launch: function() { //Ext.getBody().removeCls('loading'); // Destroy the #appLoadingIndicator element Ext.fly('appLoadingIndicator').destroy(); // Initialize the main view Ext.Viewport.add(Ext.create('App.view.Main')); }
在main.js页面中进行布局:
Ext.define('App.view.Main', { extend: 'Ext.Container', xtype: 'mainview', config: { fullscreen: true, layout: 'fit', items: [ { xtype:'toolbar', docked: 'top', title:'XIXItest', // Make the toolbar scrollable scrollable: { direction: 'horizontal', indicators: false } // Add several items into the toolbar /* items: [ { iconMask: true, iconCls: 'action' }, { iconMask: true, ui: 'plain', iconCls: 'add' }, { iconMask: true, text: 'Test', iconCls: 'action' }, { iconMask: true, text: 'Test', ui: 'plain', iconCls: 'bookmarks' }, { iconMask: true, ui: 'round', iconCls: 'download' }, { iconMask: true, ui: 'action', iconCls: 'settings', badgeText: '2' }, { iconMask: true, ui: 'confirm-round', iconCls: 'compose' }, { iconMask: true, ui: 'decline', iconCls: 'delete' }, { iconMask: true, iconAlign: 'right', ui: 'round', text: 'Home', iconCls: 'home' }, { iconMask: true, ui: 'action-round', iconCls: 'locate' }, { xtype: 'segmentedbutton', items: [ { iconMask: true, iconCls: 'maps' }, { iconMask: true, iconCls: 'organize', text: 'Sort' }, { iconMask: true, iconCls: 'refresh' } ]}, { iconMask: true, ui: 'back', iconCls: 'reply' }, { iconMask: true, iconCls: 'x-icon-mask trash' } ]*/ }, { layout: 'fit', docked: 'left', width : 350, cls : 'searchcontainer', itemId: 'searchcontainer', html:‘1’ }, { html:'2' } ] }});
如此便有左右布局的一个页面:
- st2中定义左右平板布局
- 平板中UI 模拟餐馆真实布局
- 代码中定义布局
- 左右布局
- Settings中布局主题定义。
- Silverlight中定义布局面板
- 第3章 面板与布局-3.3 ST2.0的常用布局
- 关于HTML和CSS中左右布局中的浮动问题
- freemark和bootstrap中页面布局,页签,左右菜单
- echarts中图例legend和坐标系grid实现左右布局
- st2快捷键
- st2---cocos2dx
- android 表单布局 左右布局
- 左右两边div布局
- html左右布局
- 经典左右布局demo
- Android 左右布局
- css左右上下布局
- 送老奶奶回家
- ATL
- C语言文件操作函数大全
- 私有云简介
- 有符号类型的最小负数的补码的由来
- st2中定义左右平板布局
- 解决MFC屏幕闪动问题:双缓冲的实现
- 如何理解:先减1后取反和先取反后加1得到的结果是一样的,故仍可采用取反加1的方法,即对于机器数为负数,则有[X]原=[[X]补]补。
- UIActionSheet cancel按钮不响应的问题
- page64
- shell 程序设计2--- 那些年我们一起学习linux程序设计
- 串行化的应用
- ReentrantLock与synchronized比较
- JSP EL标签不能和struts tag 一起使用,只能和JSTL一起使用了。