모든 편집용 Model의 부모 Class입니다.
Properties
id
- String>
Element의 ID
type
- String
Element의 Type
index
- Number
현재 index
parent
- Element
부모 API 모델
nextSibling
- Element
부모 API 모델
previousSibling
- Element
부모 API 모델
firstChild
- Element
부모 API 모델
lastChild
- Element
부모 API 모델
children
- Element
부모 API 모델
siblings
- Element
부모 API 모델
nextSiblings
- Element
부모 API 모델
previousSiblings
- Element
부모 API 모델
Name | Type | 설명 |
---|---|---|
id | String | Element의 ID |
type | String | Element의 Type |
index | Number | 현재 index |
parent | Element | 부모 API 모델 |
nextSibling | Element | 다음 형제 API 모델 |
previousSibling | Element | 이전 형제 API 모델 |
firstChild | Element | 첫번째 자식 API 모델 |
lastChild | Element | 마지막 자식 API 모델 |
children | Element[] | 자식 API 모델들 (배열) |
siblings | Element[] | 형제 API 모델들 (배열) |
nextSiblings | Element[] | 다음 형제 API 모델들 (배열) |
previousSiblings | Element[] | 이전 형제 API 모델들 (배열) |
Methods
Name | Param | Return | 설명 |
---|---|---|---|
closest | {Function} condition | Element | 조건에 맞는 api 모델을 반환합니다. |
setId | {String} id | id를 수정합니다. | |
setStyle | {String} cssText | 스타일을 설정합니다. |