Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Datalist extends Element

The API model used to edit the Datalist.

Methods

remove()

Removes the Element itself.

모든 ELEMENT를 제거할 경우 이후의 작업에서 오류가 발생할 수 있습니다.

var datalist = editor.getAPIModelById('id');
datalist.remove();

replace(html)

  • html <String> The HTML String to replace.

Replaces the element itself with the HTML String passed as an argument.

var datalist = editor.getAPIModelById('animals');
datalist.replace("<datalist id='animals'><option value='Dog'><option value='Cat'><option value='Chick'></datalist>");
  • No labels