I have some result views that use "has-details" which is now deprecated.
e.g.
render {
if (size(this) > 1) {
list-of (this) {
default-sort-order {
sorting(this.name)
}
has-details (true)
where-each (item) {
layout-macro (altbrains-compound-card) {
param (altbrainsdata) {
expression (item)
}
}
}
}
https://bixbydevelopers.com/dev/docs/dev-guide/release-notes/deprecations.6812
DEPRECATED: has-details is deprecated. Consider using on-click.view-for in a list card components instead. [deprecation 6812]
What does this mean? Can someone provide an example?
The Movie Agent Sample Capsule in the Bixby Developers Github repo is an excellent example for this behavior.
The relevant files are:
Here's how it works:
MoviesMovie_Resultview displays a bunch of movies using theMovie_Summarylayout macro for eachMovieMoviewhich triggers theon-clickcontainingview-for (movie)Movie_Resultview again since itsmatchrequirement is met and triggers theMovie_Detailslayout since there is only 1Movieto display.