#鸿蒙学习大百科#如何监听RichEditor组件的初始化完成?

如何监听RichEditor组件的初始化完成?

HarmonyOS
2024-10-26 09:17:15
浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
自封的不算
@Entry
@Component
struct Index {
  controller: RichEditorController = new RichEditorController();
  options: RichEditorOptions = { controller: this.controller };

  build() {
    Column() {
      RichEditor(this.options)
        .onReady(()=>{
          //组件初始化成功
        })
        .width(300)
        .height(300)
    }
    .width('100%')
    .height('100%')
    .justifyContent(FlexAlign.Center)
  }
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
分享
微博
QQ
微信
回复
2024-10-26 16:44:07
相关问题
HarmonyOS 怎么监听Web初始化完成?
1006浏览 • 1回复 待解决