Frame / SView / Windows / Collapse
Class: Collapse
Description
折叠栏
Hierarchy
-
↳
Collapse
Table of contents
Constructors
Properties
- allSubComponent
- eleClasses
- eleId
- eleIsShow
- eleLabel
- eleOnChange
- eleOnClick
- eleOnTouchStart
- eleOverLay
- isDisable
- rootPath
Methods
- addClass
- addLabel
- addSubComponents
- changePosition
- create
- createLabel
- delete
- getClasses
- getDetailInfo
- getDetailLabel
- getFlexDirection
- getId
- getLabel
- getOnChangeEvent
- getOnClickEvent
- getSubComponents
- getTitle
- hide
- initFlexDirection
- isShow
- removeClass
- removeSubComponents
- setAttribute
- setClasses
- setCollapseShowDetail
- setDetailBGColor
- setDetailInfo
- setDetailInfoColor
- setDetailInfoFontSize
- setDetailLabel
- setDetailLabelColor
- setDetailLabelFontSize
- setFlexDirection
- setId
- setIsDisable
- setOnChangeEvent
- setOnClickEvent
- setTitle
- setTitleBGColor
- setTitleColor
- setTitleFontSize
- show
- hideById
- setRootPath
- showById
Constructors
constructor
• new Collapse(): Collapse
Returns
Description
构造函数
Overrides
Properties
allSubComponent
• allSubComponent: Map
<string
, any
>
Inherited from
eleClasses
• eleClasses: string
[]
Inherited from
eleId
• eleId: string
Inherited from
eleIsShow
• eleIsShow: boolean
Inherited from
eleLabel
• eleLabel: HTMLElement
Inherited from
eleOnChange
• eleOnChange: any
Inherited from
eleOnClick
• eleOnClick: any
Inherited from
eleOnTouchStart
• eleOnTouchStart: string
Inherited from
eleOverLay
• eleOverLay: boolean
Description
默认不显示
Inherited from
isDisable
• isDisable: boolean
Inherited from
rootPath
▪ Static
rootPath: string
Inherited from
Methods
addClass
▸ addClass(className
): void
Parameters
Name | Type | Description |
---|---|---|
className | string | 标签class名称 |
Returns
void
Description
添加标签class,原class保留
Inherited from
addLabel
▸ addLabel(id?
): void
Parameters
Name | Type |
---|---|
id? | string |
Returns
void
Description
添加标签至网页
Inherited from
addSubComponents
▸ addSubComponents(subComponents
, position
): void
Parameters
Name | Type | Description |
---|---|---|
subComponents | any [] | 子控件 |
position | number | 位置 |
Returns
void
Description
添加子控件
changePosition
▸ changePosition(oldPosition
, newPosition
): void
Parameters
Name | Type | Description |
---|---|---|
oldPosition | number | 老位置 |
newPosition | number | 新位置 |
Returns
void
Description
调整子控件位置
create
▸ create(elementInfo
): Promise
<Label
>
Parameters
Name | Type |
---|---|
elementInfo | any |
Returns
Promise
<Label
>
Inherited from
createLabel
▸ createLabel(collapseInfo
): Promise
<Collapse
>
Parameters
Name | Type |
---|---|
collapseInfo | any |
Returns
Promise
<Collapse
>
Description
创建列表
Overrides
delete
▸ delete(): void
Returns
void
Description
移除标签
Inherited from
getClasses
▸ getClasses(): string
[]
Returns
string
[]
Description
获取标签class名
Inherited from
getDetailInfo
▸ getDetailInfo(): string
[]
Returns
string
[]
Description
获取列表细节内容
getDetailLabel
▸ getDetailLabel(): string
[]
Returns
string
[]
Description
获取列表细节标题
getFlexDirection
▸ getFlexDirection(): string
Returns
string
Inherited from
getId
▸ getId(): string
Returns
string
Description
获取标签id名
Inherited from
getLabel
▸ getLabel(): HTMLElement
Returns
HTMLElement
Description
获取标签
Inherited from
getOnChangeEvent
▸ getOnChangeEvent(): any
Returns
any
Description
获取OnChange事件
Inherited from
getOnClickEvent
▸ getOnClickEvent(): any
Returns
any
Description
获取OnClick事件
Inherited from
getSubComponents
▸ getSubComponents(): any
[]
Returns
any
[]
Description
获取列表子控件
getTitle
▸ getTitle(): string
Returns
string
Description
获取列表标题
hide
▸ hide(): void
Returns
void
Description
隐藏标签
Inherited from
initFlexDirection
▸ initFlexDirection(): void
Returns
void
Inherited from
isShow
▸ isShow(): boolean
Returns
boolean
Description
标签是否显示
Inherited from
removeClass
▸ removeClass(className
): void
Parameters
Name | Type | Description |
---|---|---|
className | string | 标签名称 |
Returns
void
Description
删除标签class
Inherited from
removeSubComponents
▸ removeSubComponents(position
): void
Parameters
Name | Type | Description |
---|---|---|
position | number | 位置 |
Returns
void
Description
移除子控件