Fiori 代码规范2---代码结构详解3
来源:互联网 发布:mysql数据库下载安装 编辑:程序博客网 时间:2024/06/11 05:41
2.3.3 Show/Hide component
For some function, the app need to show or hide component, we have two ways to do
a) In the view:i. Define a JSON model and set the model to view in the controller:
ii. Bind the model to the view component:
b) In the controller:
We can set the component visible/editable/enabledby the component id in the controller:
Conventions
- View names are capitalized
- All views are stored in the view folder
- Names of XML views always end with *.view.xml
- The default XML namespace is sap.m
- Other XML namespaces use the last part of the SAP namespace as alias (for example, mvc for sap.ui.core.mvc
- controllerName must be in conformity with the corresponding controller definition
2.3.4 Responsive Layout
Forall SAPUI5 project, we need to promise that the view is responsive(support themultiple screen).
So we’dbetter to use the Grid, FlexBox,FixFlex, SimpleForm, Form in your project.
阅读全文
0 0
- Fiori 代码规范2---代码结构详解3
- Fiori 代码规范2---代码结构详解2
- Fiori 代码规范2---代码结构详解1
- Fiori 代码规范2---代码结构详解4
- Fiori 代码规范2---代码结构详解5
- Fiori 代码规范1---项目结构
- Fiori 代码规范0---导读
- SAP Fiori 常用事务代码
- Python 目录结构,代码规范
- java 规范的代码结构
- rails 代码结构详解
- Android 开发 代码结构规范 MVC模式
- 泡泡龙——代码结构规范
- 软件代码规范笔记_文件结构
- 代码注释规范(3)
- 代码注释规范(2)
- PHP扩展代码结构详解
- PHP扩展代码结构详解
- 蓝盾初赛二阶段
- 2017 ccpc秦皇岛站总结
- UE4 Pawn AI寻路
- js中正则表达式使数字、中文或指定字符高亮
- 安装配置MongoDB(服务名无效问题)--学习1
- Fiori 代码规范2---代码结构详解3
- eclipse配置反编译插件
- 初学opencv遇到的问题及解决办法(3)
- JavaScript的深拷贝
- [DP] HHHOJ #115. 我们爱数数
- tomcat 一闪而过
- 1001. 害死人不偿命的(3n+1)猜想
- hadoop在Linux上的安装
- python 文件操作总结