未验证 提交 cc2e3fe2 编写于 作者: O openharmony_ci 提交者: Gitee

!20813 Indexer补充示例代码和截图

Merge pull request !20813 from sunjiakun/indexer
......@@ -139,6 +139,10 @@ struct AlphabetIndexerSample {
.popupFont({ size: 30, weight: FontWeight.Bolder }) // 弹出框内容的字体样式
.itemSize(28) // 每一项的尺寸大小
.alignStyle(IndexerAlign.Left) // 弹出框在索引条右侧弹出
.popupSelectedColor(0x00FF00)
.popupUnselectedColor(0x0000FF)
.popupItemFont({ size: 30, style: FontStyle.Normal })
.popupItemBackgroundColor(0xCCCCCC)
.onSelect((index: number) => {
console.info(this.value[index] + ' Selected!')
})
......@@ -166,4 +170,4 @@ struct AlphabetIndexerSample {
}
```
![alphabet](figures/alphabet.gif)
\ No newline at end of file
![alphabet](figures/alphabet.gif)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册