Bixby Developer Center

Guides
References

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

optional

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

If specified, you can render the details of a single item in an input view by calling a layout, layout-match, or layout-macro, both when there is only a single item to display or when the selection-of key has the has-details child key set to true. You should make sure to handle the case of rendering a single item (size(this)==1), like in the example below:

// With the `runtime-flag` 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) {
has-details (true)
where-each (result) {
...
}
}
}
}
}

If not specified, 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.

// Before enabling this `runtime-flag`

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

message (...)

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