提交 e8439cec 编写于 作者: S sunjiakun

add demo

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 af6b900d
......@@ -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.
先完成此消息的编辑!
想要评论请 注册