File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- sap . ui . define ( [ ] , function ( ) {
1+ sap . ui . define ( [ "com/mrb/UI5-Testing/model/DateFormatter" ] , function ( DateFormatter ) {
22 "use strict" ;
33 return {
44 /**
@@ -32,5 +32,9 @@ sap.ui.define([], function () {
3232 return "Error" ;
3333 }
3434 } ,
35+
36+ date : function ( date ) {
37+ return new DateFormatter ( { now : Date . now } ) . format ( date ) ;
38+ }
3539 } ;
3640} ) ;
Original file line number Diff line number Diff line change 11<mvc : View controllerName =" com.mrb.UI5-Testing.controller.Post"
22 xmlns =" sap.m"
3- xmlns : mvc =" sap.ui.core.mvc"
4- xmlns : form =" sap.ui.layout.form"
3+ xmlns : mvc =" sap.ui.core.mvc"
4+ xmlns : form =" sap.ui.layout.form"
55 xmlns : semantic =" sap.m.semantic" >
66 <semantic : FullscreenPage id =" page" busy =" {postView>/busy}" busyIndicatorDelay =" 0" navButtonPress =" .onNavBack" showNavButton =" true" title =" {i18n>objectTitle}" >
77 <semantic : content >
1616 <form : SimpleForm >
1717 <form : content >
1818 <Label text =" {i18n>postDateLabel}" />
19- <Text text =" {Timestamp}" />
19+ <Text text =" {path: 'Timestamp',
20+ formatter: '.formatter.date'}" />
2021 <Label text =" {i18n>postDescriptionLabel}" />
2122 <Text text =" {Description}" />
2223 </form : content >
You can’t perform that action at this time.
0 commit comments