hourValues dynamically?


#1

How to set hourValues inside date picker dynamically, something like(this isn’t working):

hourValues="this.index? 12,13,14 : 0,1,2,"

#2

I haven’t tested this, but I would think something like:

[hourValues]="this.index ? [12,13,14] : [0,1,2]"

#3

Wow this is working thank you


#4

is there any way to do something like this?

[hourValues]="this.index ? something() : something2()"


#5

Should be, as long as those functions return either arrays or comma-delimited strings.