使用范围:UI2
Contents
component Kindeditor ($UI/system/components/justep/kindeditor/kindeditor) extends BindComponent
Constructor Top
Kindeditor () | |||
Kindeditor ( options) |
Properties Top
boolean |
disabled
禁用 |
Attributes Top
string |
bind-ref
数据感知的绑定表达式 | ||
string |
class
组件class | ||
boolean |
disabled
禁用 | ||
string |
xid
组件标示 |
Methods Top
void | clear () | |
Object | get (String name) | |
void | set (json arg) | |
void | val () |
Events Top
void | onChange (ChangeEvent event) | |
void | onFocus (ViewEvent event) | |
void | onInit (InitEvent event) | |
void | onInited (ViewEvent event) |
Constructor details
Top
public
Kindeditor
()
使用场景:需要编辑图文并茂的文本,如新闻编辑等;
使用方法:添加richTextarea组件,绑定要保存内容的数据组件字段;
public
Kindeditor
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
public
Kindeditor
()
public
Kindeditor
( options)
构造函数
Inherited from ViewComponent
参数options格式类似{parent:xx, config:{}},parent是组件的父节点,允许为空或不指定,config是组件的参数选项
Properties Detail Top
public
boolean
disabled
禁用
Attributes Detail Top
public
string
bind-ref
数据感知的绑定表达式
public
string
class
组件class
基础样式: x-richTextarea(必须)
public
boolean
disabled
禁用
public
string
xid
组件标示
Methods Detail Top
public
void
clear
()
清空richTextarea数据
public
Object
get
(String name)
获取属性值
public
void
set
(json arg)
设置属性值
public
void
val
()
给richTextarea赋值或者取值
Events Detail Top
[回调型事件]数据修改触发事件
[回调型事件]焦点进入事件
[回调型事件]初始化editor事件,可以通过event.option设置editor的初始参数
[回调型事件]初始化editor完成事件