UNPKG

ion-oui

Version:

The client library of oui builder for ionic

23 lines (22 loc) 928 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OUIAbstractIonParser = void 0; var OUIAbstractIonParser = /** @class */ (function () { function OUIAbstractIonParser() { } OUIAbstractIonParser.prototype.parse = function (data, ouiHost, clickHandler, options) { options = options || {}; var viewContainerRef = ouiHost.viewContainerRef; viewContainerRef.clear(); var componentRef = viewContainerRef.createComponent(this.componentType); componentRef.instance.data = data; componentRef.instance.clickHandler = clickHandler; componentRef.instance.mode = options.mode; return componentRef.instance; }; OUIAbstractIonParser.prototype.export = function (element) { throw new Error('Method not implemented.'); }; return OUIAbstractIonParser; }()); exports.OUIAbstractIonParser = OUIAbstractIonParser;