UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

20 lines 756 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.demoPaneAction = demoPaneAction; const core_1 = require("@ng-doc/core"); /** * Render demo pane point on the page, it will be rendered by the application * @param componentName - The title of the component class to render * @param options - Options for configuring the action * @returns The action output */ function demoPaneAction(componentName, options) { return () => { return { output: `<ng-doc-demo-pane componentName="${componentName}" indexable="false"> <div id="options">${(0, core_1.escapeHtml)(JSON.stringify(options ?? {}))}</div> </ng-doc-demo-pane>`, }; }; } //# sourceMappingURL=demo-pane.action.js.map