上一页 1 2 3 4 5 6 7 ··· 41 下一页
摘要: Step 25: Sorting and Grouping https://openui5.hana.ondemand.com/topic/c4b2a32bb72f483faa173e890e48d812 列表的排序与分组 webapp/view/InvoiceList.view.xml <mvc: 阅读全文
posted @ 2021-09-06 21:29 小石王 阅读(427) 评论(0) 推荐(0) 编辑
摘要: Step 23: Custom Formatters https://ui5.sap.com/#/topic/0f8626ed7b7542ffaa44601828db20de 上一节,使用UI5自己的支持表达式绑定的控件实现了,根据价格值的不同,显示不同的颜色。 如果是比较复杂的逻辑,使用表达式绑定 阅读全文
posted @ 2021-09-06 08:33 小石王 阅读(405) 评论(0) 推荐(0) 编辑
摘要: 表达式绑定 https://ui5.sap.com/#/topic/c98d57347ba444c6945f596584d2db45 webapp/view/InvoiceList.view.xml <mvc:View controllerName="sap.ui.demo.walkthrough. 阅读全文
posted @ 2021-09-06 08:32 小石王 阅读(392) 评论(0) 推荐(0) 编辑
摘要: Step 21: Data Types https://ui5.sap.com/#/topic/dfe04650afc046e0802abb1a1a90d2d9 上一节的json文件里只有价格,但是没有币种,UI5通过使用Data Types,可以根据币种的不同,自动格式化价格数字, 比如虽然价格的 阅读全文
posted @ 2021-09-06 08:31 小石王 阅读(444) 评论(0) 推荐(0) 编辑
摘要: Step 20: Aggregation Binding https://ui5.sap.com/#/topic/bf71375454654b44af01379a3c3a6273 数据绑定和列表控件 webapp/Invoices.json (New) { "Invoices": [ { "Prod 阅读全文
posted @ 2021-09-06 08:30 小石王 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 在step16里,对话框是被集成在view和controller里了。不够共通。 这次把对话框,共通到component级别,方便别的view使用。 webapp/Component.js sap.ui.define([ "sap/ui/core/UIComponent", "sap/ui/mode 阅读全文
posted @ 2021-08-27 17:05 小石王 阅读(547) 评论(1) 推荐(1) 编辑
摘要: Step 17: Fragment Callbacks 添加对话框的事件逻辑代码 由于Fragment 不像view那样绑定controller,所以要想添加逻辑代码必须给它一个controller,也是就创建它的时候使用controller属性,this的含义是当前的controller。 thi 阅读全文
posted @ 2021-08-27 17:03 小石王 阅读(488) 评论(0) 推荐(0) 编辑
摘要: step 18 sap的icon使用 webapp/view/HelloPanel.view.xml <mvc:View controllerName="sap.ui.demo.walkthrough.controller.HelloPanel" xmlns="sap.m" xmlns:mvc="s 阅读全文
posted @ 2021-08-27 17:03 小石王 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Step 16: Dialogs and Fragments Fragments:中文是碎片的意思,我理解是组件的意思 可以把view拆分成更小的单位,也就是一个view可以由多个Fragments组成。Fragments里可以包含1个或者n个控件(比如按钮,输入框等) Fragments是轻量级的 阅读全文
posted @ 2021-08-26 10:05 小石王 阅读(611) 评论(0) 推荐(0) 编辑
摘要: Step 15: Nested Views 嵌套view 当画面的控件变多后,最好不要只用一个view,分成多个view比较利于后面的维护和重用,所以就要使用的嵌套view webapp/view/App.view.xml <mvc:View controllerName="sap.ui.demo. 阅读全文
posted @ 2021-08-26 10:04 小石王 阅读(612) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 41 下一页