Fieldset extends Element
필드셋을 편집하는데 사용되는 API 모델입니다The API model used to edit fieldsets.
Methods
append(html)
- html <String> 추가할 HTML <String> HTML String to append.
인자로 넘겨받은 HTML String으로 Element의 뒤쪽에 자식으로 추가합니다The HTML String passed as an argument is added as a child at the back of the Element.
Code Block |
---|
|
var fieldset = editor.getAPIModelById('id');
fieldset.append("<input type='radio' id='mothman' name='monster'><label for='mothman'>Mothman</label>"); |
prepend(html)
- html <String> 추가할 HTML <String> HTML String to append.
인자로 넘겨받은 HTML String으로 Element의 앞쪽에 자식으로 추가합니다The HTML String passed as an argument is added as a child to the front of the Element.
Code Block |
---|
|
var fieldset = editor.getAPIModelById('id');
fieldset.prepend("<input type='radio' id='mothman' name='monster'><label for='mothman'>Mothman</label>"); |
remove()
Removes the Element 자신을 제거합니다itself.
Status |
---|
| |
---|
subtle | true |
---|
colour | Red |
---|
title | 모든 Element를 제거할 경우 이후의 작업에서 오류가 발생할 수 있습니다If all elements are removed, errors may occur in subsequent operations. |
---|
|
Code Block |
---|
|
var fieldset = editor.getAPIModelById('id');
fieldset.remove(); |
replace(html)
- html <String> 교체할 <String> The HTML String to replace.
Element 자신을 인자로 넘겨받은 HTML String으로 교체합니다Replaces the element itself with the HTML String passed as an argument.
Code Block |
---|
|
var fieldset = editor.getAPIModelById('id');
fieldset.replace('<p><span>Fieldset replaced</span></p>'); |
setHTML(html)
- html <String> 설정할 HTML 문자열
...
- <String> HTML string to set
Set the HTML string value passed as an argument to the internal HTML of Fieldset.
Code Block |
---|
|
var fieldset = editor.getAPIModelById('id');
fieldset.setHTML('<p><span>HTML를<p><span>Add 추가합니다HTML. All 기존에previously entered 입력된information 내용은will 모두be 지워집니다erased.</span></p>'); |
setText(text)
- text <String> 설정할 Text 문자열
...
- <String> Text string to set
Set the text string value passed as an argument to the internal Text of the Fieldset.
Code Block |
---|
|
var fieldset = editor.getAPIModelById('id');
fieldset.setText('텍스트입니다Sample Text.'); |