Bixby Developer Center

References

use-input-views-for-selection-list-detail

optionalvalue optional

Changes how a single result is rendered within an input-view.

When enabled, you can render the details of a single item in an input view by calling a layout, layout-match, or macro, both when there is only a single item to display and when diving into the details page of an item from selection-of. You should make sure to handle the case of rendering a single item (size(this)==1), like in the example below:

// When enabled

input-view {
match-pattern: MyResult (this)

message (...)

render {
if (size(this) == 0) {
// render a form
} else-if (size(this) == 1) {
layout {
select-button-text (select me)
section {
...
}
}
} else {
selection-of (this) {
where-each (result) {
...
}
}
}
}
}

When disabled, then an input-view like below calls out to a corresponding result-view to render the layout for a single result when selecting an item from the selection list.

// When disabled

input-view {
match-pattern: MyResult (this)

message (...)

render {
if (size(this) == 0) {
// render a form
} else {
selection-of (this) {
where-each (result) {
...
}
}
}
}
}

This runtime flag is enabled by default in the following runtime versions:

Example

capsule {
runtime-version (1) {
overrides {
use-input-views-for-selection-list-detail (true)
}
}
}