classafExplorer::HtmlViewer

sys::Obj
  afReflux::Panel
    afReflux::View
      afExplorer::HtmlViewer

(View) - A HTML viewer for HTTP and file resources.

normaliseBrowserUrl

Source

protected virtual Uri normaliseBrowserUrl(Uri resourceUri, Uri url)

onLoad

Source

protected virtual Void onLoad(Event event)

Callback when then page loads.

resolveResource

Source

virtual Obj resolveResource(Resource resource)

Hook for subclasses to convert the resource into either a URI or a Str. Returns resource.uri by default.

reuseView

Source

virtual override Bool reuseView(Resource resource)

Returns true.

scrollToId

Source

Void scrollToId(Str id)

Scrolls the page to an ID. Handy for when setting the HTML via the text attribute.

scrollToId("#myId")