Legend extends Element
The API model used to edit the Legend.
Methods
remove()
Removes the Element itself.
모든 ELEMENT를 제거할 경우 이후의 작업에서 오류가 발생할 수 있습니다.
var legend = editor.getAPIModelById('id'); legend.remove();
replace(html)
- html <String> The HTML String to replace.
Replaces the element itself with the HTML String passed as an argument.
var legend = editor.getAPIModelById('id'); legend.replace('<span>Legend replaced</span>');