How to use the @hpcc-js/marshaller.Dashy function in @hpcc-js/marshaller

To help you get started, we’ve selected a few @hpcc-js/marshaller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / demos / dashy / src / index.ts View on Github external
init(placeholder: string, urlStr, layoutJson?) {
        const _url = new Comms.ESPUrl().url(urlStr);
        if (!!_url.param("dashboard")) {
            this._dashy = new Dashboard(new ElementContainer())
                .target(placeholder)
                .hideSingleTabs(true)
                .titleVisible(false)
                .render()
                ;
        } else {
            this._dashy = new Dashy()
                .target(placeholder)
                .render()
                ;
        }

        this._dashy.element()
            .on("drop", () => this.dropHandler(this.event()))
            .on("dragover", () => this.dragOverHandler(this.event()))
            ;

        if (_url.param("Wuid")) {
            logger.debug(`WU Params:  ${_url.params()}`);
            const baseUrl = `${_url.param("Protocol")}://${_url.param("Hostname")}:${_url.param("Port")}`;
            logger.debug(baseUrl);
            const result = new Result({ baseUrl }, _url.param("Wuid"), _url.param("ResultName"));
            result.fetchRows().then(async (response: any[]) => {
github hpcc-systems / Visualization / demos / dashy / lib-umd / index.js View on Github external
function App(placeholder) {
            this._dashy = new marshaller_1.Dashy();
            this._dashy
                .target(placeholder)
                .render();
            this.parseUrl();
        }
        App.prototype.parseUrl = function () {