bixby - 如何在缩略图上方插入布局宏
问题描述
我想在答案集上方插入微小的类型,提供一些元数据,但不知道该怎么做。我只想让布局宏 content-answer-set-info 在 Legal 或 Detail_S 中说出类似“按时间倒序排列的结果”之类的内容。我希望它出现在 altbrains 车间下方和列表中的第一项上方。
render {
if (size(this) > 1) {
list-of (this) {
has-details (true)
where-each (item) {
layout-macro (content-thumbnail-card) {
param (content) {
expression (item)
}
}
}
}
}
else-if (size(this) == 1) {
layout-match (this) {
mode (Details)
}
}
else {layout-macro (content-zero-results) {}
}
解决方案
我建议将此布局宏包装在 a 中section
并使用section-title
( documentation ) 键为其提供列表上方的文本。
推荐阅读
- r - 在地图函数中提取数据框的名称
- c# - 尝试为 linq 中的日期创建大于、等于或大于动态过滤器
- outlook-addin - How to $filter attachments list endpoint by isInline?
- angular - Error when creating Angular 2 custom theme: Argument `$map` of `map-get($map, $key)` must be a map
- python - 如何在 Process() 中中断 Queue.get()?
- c++ - How to test if std::remove_cvref is defined in the standard library?
- java - maven, how to repackage 3rd party jar with it's transitive dependencies
- java - How to fix: "Unrecognized token 'Unrecognized': was expecting ('true', 'false' or 'null')" using Horton schema-registry
- android - Listview search does not show search results
- java - gradlewAssembleRelease、gradlewInstallRelease 和 gradlew bundleRelease 有什么区别以及何时使用哪个?