UNPKG

@syncfusion/ej2-schedule

Version:

Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.

43 lines (42 loc) 1.81 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var RecurrenceEditorHelper = (function (_super) { __extends(RecurrenceEditorHelper, _super); function RecurrenceEditorHelper(id, wrapperFn) { var _this = _super.call(this) || this; _this.id = id; if (wrapperFn !== undefined) { _this.wrapperFn = wrapperFn; } return _this; } RecurrenceEditorHelper.prototype.getElement = function () { return this.selector('#' + this.id); }; RecurrenceEditorHelper.prototype.changeRepeatType = function (repeatType) { if (typeof repeatType === 'string') { this.setModel('selectedType', repeatType.toLowerCase()); } else { var frequencies = this.getModel('frequencies'); this.setModel('selectedType', frequencies[repeatType]); } }; return RecurrenceEditorHelper; }(e2e_1.TestHelper)); exports.RecurrenceEditorHelper = RecurrenceEditorHelper; });