setContent method

String setContent(
  1. String content
)

Sets the HTML content of the popup. If a function is passed the source layer will be passed to the function. The function should

Implementation

// return a String or HTMLElement to be used in the popup.
external String setContent(String content);