File tree 3 files changed +14
-8
lines changed
test/sap/ui/webcomponents/main/samples
3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 1
1
<div class =" ui5-dp-root" style =" {{ styles.wrapper }} " >
2
2
3
- <div class =" ui5-dp-weeknumber-container" >
4
- {{ #each _weekNumbers }}
5
- <div class =" ui5-dp-weekname-container" >
6
- <span class =" ui5-dp-weekname" >{{ this }} </span >
7
- </div >
8
- {{ /each }}
9
- </div >
3
+ {{ #if showWeekNumbers }}
4
+ <div class =" ui5-dp-weeknumber-container" >
5
+ {{ #each _weekNumbers }}
6
+ <div class =" ui5-dp-weekname-container" >
7
+ <span class =" ui5-dp-weekname" >{{ this }} </span >
8
+ </div >
9
+ {{ /each }}
10
+ </div >
11
+ {{ /if }}
10
12
11
13
<div id =" {{ _id }} -content" class =" ui5-dp-content" >
12
14
<div role =" row" class =" ui5-dp-days-names-container" >
Original file line number Diff line number Diff line change @@ -300,6 +300,10 @@ class DayPicker extends UI5Element {
300
300
}
301
301
}
302
302
303
+ get showWeekNumbers ( ) {
304
+ return this . primaryCalendarType === CalendarType . Gregorian ;
305
+ }
306
+
303
307
get _timestamp ( ) {
304
308
return this . timestamp !== undefined ? this . timestamp : Math . floor ( new Date ( ) . getTime ( ) / 1000 ) ;
305
309
}
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ <h3>Input with Label</h3>
214
214
215
215
< script >
216
216
var searchCriteria = "PASTA" ;
217
- searchIcon . addEventListener ( "press " , function ( ) {
217
+ searchIcon . addEventListener ( "click " , function ( ) {
218
218
alert ( "Look for: " + searchCriteria ) ;
219
219
} ) ;
220
220
searchInput . addEventListener ( "input" , function ( e ) {
You can’t perform that action at this time.
0 commit comments