@froalacharts/core
Version:
Froala Charts - A collection of interactive charts to build data visualizations for web and mobile applications.
1 lines • 1.05 kB
JavaScript
;var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule=true;exports["default"]=void 0;var _inheritsLoose2=_interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _smartRenderer=_interopRequireDefault(require("./smart-renderer"));var TestableComponent=function(_SmartRenderer){(0,_inheritsLoose2["default"])(TestableComponent,_SmartRenderer);function TestableComponent(){return _SmartRenderer.apply(this,arguments)||this}var _proto=TestableComponent.prototype;_proto.configureAttributes=function configureAttributes(options){if(options===void 0){options={}}_SmartRenderer.prototype.configureAttributes.call(this,options);this.config.childCount=options.childCount;this.createChildren()};_proto.createChildren=function createChildren(){var i=0;for(i=0;i<this.config.childCount;i++){this.attachChild(_smartRenderer["default"],"childcomponent","childcomponent")}};return TestableComponent}(_smartRenderer["default"]);var _default=TestableComponent;exports["default"]=_default;