flex 侧面可以选择性隐藏的菜单
来源:互联网 发布:数据分析师前景 知乎 编辑:程序博客网 时间:2024/04/28 12:19
显示时的效果图:
隐藏时的效果图:
主要思想就是:利用flex的状态切换来控制,菜单的显示和隐藏
部分代码:
<s:states>
<s:State name="show">
</s:State>
<s:State name="hide">
</s:State>
</s:states>
<s:Group width="100%">
<s:BorderContainer width="100%" height.show="60" height.hide="0" includeInLayout.hide="false" backgroundColor="#ffffff">
<s:HGroup width.show="100%" height.show="60" width.hide="0" height.hide="0" verticalAlign="middle" horizontalAlign="center" gap="50">
<s:Button id="btn_phoneMeeting" label="电话会议" buttonMode="true" useHandCursor="true" />
<s:Button id="btn_boradMeeting" label="白板会议" buttonMode="true" useHandCursor="true" />
<s:Button id="btn_position" label="地图定位" buttonMode="true" useHandCursor="true" />
<s:Button id="btn_groupSendMsg" label="群发短信" buttonMode="true" useHandCursor="true"/>
</s:HGroup>
</s:BorderContainer>
<s:Image id="btnShowMune"
source.hide="{spanImg}"
source.show="{colImg}" horizontalCenter="0" height="10" width="100" buttonMode="true" useHandCursor="true"/>
</s:Group>
/**点击事件*/
private function colSpanClickHandler(event:MouseEvent):void{
if(view.currentState=="show"){
view.currentState="hide";
}else{
view.currentState="show";
}
}
- flex 侧面可以选择性隐藏的菜单
- 制作可以自动隐藏的弹出式菜单
- 150.自定义侧面滑动菜单
- 选择性隐藏表单内容
- 类似京东和易迅的菜单-可以折叠隐藏的导航菜单
- Flex 效果_可伸缩隐藏菜单
- HTML 根据元素属性的选择性显示与隐藏
- 旋转体的侧面积
- Flex Accordion 抽屉菜单隐藏其中某个子类
- Flex上下文菜单的实现
- 菜单的隐藏和显示
- 隐藏Ribbon的右键菜单
- 解决:长按一条接收到的彩信,快捷菜单“选择性复制”功能错误
- Mysql索引的选择性
- 索引的选择性
- 索引的选择性
- 索引的选择性
- 数据库索引的选择性
- 基于Metronic的Bootstrap开发框架经验总结(2)--列表分页处理和插件JSTree的使用
- POJ 1138 Ships 笔记
- 读取修改caffemodel文件里的网络模型参数
- C语言下的qsort函数
- 第一次用springmvc+mybatis搭建环境
- flex 侧面可以选择性隐藏的菜单
- poj2155-二维树状数组 区间更新 单点查询
- Linux文件系统之二
- Linux 学习(一)--- Linux 安装(超详细图形介绍)
- 【温湿度监控】Modbus协议分析——TCP/RTU
- (二)R语言的数据类型
- 对以后刷题及数学上的提醒
- android通过webview调起支付宝app支付
- 在使用mybatis时遇到查询结果返回为空(NULL)的情况,但是查数据库能查到