Bixby Developer Center

References

initial-value

optionalvalue required

The initial value to show the user in the duration-picker. The value should be a valid Period or DurationPeriod. You can also use Expression Language to format or extract an initial value from your existing models.

If not specified, the initial value is zero (0H0M0S).

Examples

The following example sets an initial time with Expression Language:

// Set initial time of 2 hours with EL
input-view {
...
render {
duration-picker {
initial-value ("#{durationBetween(addDuration(now(), 'PT2H'), now())}")
}
}
}

For an example of setting the initial value with default-init, see Initializing Date & Time Concepts in the viv.time documentation or the longer duration-picker usage example.