We've introduced a new runtime flag that changes how a single result is rendered within an input-view
.
If you specify the use-input-views-for-selection-list-detail
runtime flag, you can render the details of a single item in an input view by calling a layout
, layout-match
, or layout-macro
.
Example
// 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) {
where-each (result) {
...
}
}
}
}
}
If not specified, then an input-view
calls out to a corresponding result-view
to render the layout for a single result when selecting an item from the selection list.
Learn more about the deprecation stages.
Copyright 2024 Samsung All rights reserved