UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

35 lines 2.22 kB
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/DatePicker", "./DatePicker.Examples.scss"], function (require, exports, tslib_1, React, DatePicker_1) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var DayPickerStrings = { months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], shortDays: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], goToToday: 'Go to today', prevMonthAriaLabel: 'Go to previous month', nextMonthAriaLabel: 'Go to next month', prevYearAriaLabel: 'Go to previous year', nextYearAriaLabel: 'Go to next year', closeButtonAriaLabel: 'Close date picker' }; var DatePickerDisabledExample = /** @class */ (function (_super) { tslib_1.__extends(DatePickerDisabledExample, _super); function DatePickerDisabledExample(props) { var _this = _super.call(this, props) || this; _this.state = { firstDayOfWeek: DatePicker_1.DayOfWeek.Sunday }; return _this; } DatePickerDisabledExample.prototype.render = function () { var firstDayOfWeek = this.state.firstDayOfWeek; return (React.createElement("div", { className: "docs-DatePickerExample" }, React.createElement(DatePicker_1.DatePicker, { firstDayOfWeek: firstDayOfWeek, strings: DayPickerStrings, placeholder: "Select a date...", ariaLabel: "Select a date", disabled: true }), React.createElement(DatePicker_1.DatePicker, { label: "Disabled (with label)", firstDayOfWeek: firstDayOfWeek, strings: DayPickerStrings, placeholder: "Select a date...", ariaLabel: "Select a date", disabled: true }))); }; return DatePickerDisabledExample; }(React.Component)); exports.DatePickerDisabledExample = DatePickerDisabledExample; }); //# sourceMappingURL=DatePicker.Disabled.Example.js.map