export var Show = function()

in src/Angara.Html/Scripts/Angara.Show.ts [49:70]


export var Show = function (content: any, container: HTMLElement) {
    $(container).addClass("angara-show-content").html("Loading...");
    var dsc = describeContent(content, "__angara_typeId");
    require([dsc.module], function (viewer) {
        $(container).html("");
        return viewer.Show(content, container);
    }, function (err) {
        // There are no custom viewer found for the content.
        var module2 = null;
        if (Array.isArray(content)) // Show it as an array?
            module2 = "Seq";
        else
            module2 = "Record"; // Using generic viewer
        require([module2], function (viewer) {
            $(container).html("");
            return viewer.Show(content, container);
        }, function (err) {
            $(container).html(errFailedToLoad(err, dsc.module)).addClass("angara-show-errormessage");
        });
    });
    return dsc.type;
}