(abstract) new Base(options)
- Description:
控件最顶层基类(所有 FineUI 控件的共同父类)。
抽象基类,不能直接实例化(
)。 此类只承担最基础的实例注册和类型识别能力(FineUI.create({ type: 'Base' })id、type、isType()),不渲染任何可视元素。直接子类:
- FineUI.Component —— 所有可视控件的基类(再向下派生出按钮、容器、面板、表单字段、表格列定义等全部控件)
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 初始参数 Properties
|
Methods
isType(value) → {boolean}
- Description:
检测当前实例是否指定的控件类型
Example
grid1.isType('panel') // 返回true
grid1.isType('grid') // 返回true
Parameters:
| Name | Type | Description |
|---|---|---|
value |
Object | 控件类型 |
Returns:
如果当前实例是指定的控件类型,返回true;否则返回false
- Type
- boolean