File tree Expand file tree Collapse file tree 3 files changed +14
-8
lines changed
test/sap/ui/webcomponents/main/samples Expand file tree Collapse file tree 3 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 11<div class =" ui5-dp-root" style =" {{ styles.wrapper }} " >
22
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 }}
1012
1113 <div id =" {{ _id }} -content" class =" ui5-dp-content" >
1214 <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 {
300300 }
301301 }
302302
303+ get showWeekNumbers ( ) {
304+ return this . primaryCalendarType === CalendarType . Gregorian ;
305+ }
306+
303307 get _timestamp ( ) {
304308 return this . timestamp !== undefined ? this . timestamp : Math . floor ( new Date ( ) . getTime ( ) / 1000 ) ;
305309 }
Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ <h3>Input with Label</h3>
214214
215215 < script >
216216 var searchCriteria = "PASTA" ;
217- searchIcon . addEventListener ( "press " , function ( ) {
217+ searchIcon . addEventListener ( "click " , function ( ) {
218218 alert ( "Look for: " + searchCriteria ) ;
219219 } ) ;
220220 searchInput . addEventListener ( "input" , function ( e ) {
You can’t perform that action at this time.
0 commit comments