사이냅에디터에서는 API를 이용한 내용 편집을 위해 APIModel을 제공하고 있습니다.
APIModel Class는 편집용 Model을 가져오는데 사용되는 get method를 제공하고 있습니다.
public get(elementOrId)
Parameters:
...
Name
...
Type
...
Description
...
elementOrId
...
- element :
- ID :
...
APIModel은 getAPIModelById, getAPIModels, getAPIModelsBySelector 메소드를 이용해서 생성할수 있습니다.
Example:
Code Block | ||||
---|---|---|---|---|
| ||||
var tableModel = editor.APIModel.getgetAPIModelById('ID'); |
Children Display | ||||||
---|---|---|---|---|---|---|
|