Home Reference Source
import ModalSourceCode from './ui/dialogs/modalsourcecode.js'
public class | source

ModalSourceCode

Opens a modal dialog and shows a loading indicator animation

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

_dialog: *

private

_options: {"title": *, "html": string, "url": *, "line": *, "lang": *}

private

_tasks: *[]

Method Summary

Public Methods
public

close()

Private Methods
private

_getFileSnippet(url: *, cb: *)

private

_getHtmlFromSrc(str: *, badLines: *, from: *, to: *, lang: *): *

Public Constructors

public constructor() source

Private Members

private _dialog: * source

private _options: {"title": *, "html": string, "url": *, "line": *, "lang": *} source

private _tasks: *[] source

Public Methods

public close() source

Private Methods

private _getFileSnippet(url: *, cb: *) source

Params:

NameTypeAttributeDescription
url *
cb *

private _getHtmlFromSrc(str: *, badLines: *, from: *, to: *, lang: *): * source

Params:

NameTypeAttributeDescription
str *
badLines *
from *
to *
lang *

Return:

*