UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

22 lines 1.17 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var Utilities_1 = require("office-ui-fabric-react/lib/Utilities"); var Button_1 = require("office-ui-fabric-react/lib/Button"); var Tooltip_1 = require("office-ui-fabric-react/lib/Tooltip"); var TooltipNoScrollExample = /** @class */ (function (_super) { tslib_1.__extends(TooltipNoScrollExample, _super); function TooltipNoScrollExample() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.tooltipId = Utilities_1.getId('text-tooltip'); return _this; } TooltipNoScrollExample.prototype.render = function () { return (React.createElement(Tooltip_1.TooltipHost, { content: "This is the tooltip", id: this.tooltipId, tooltipProps: { style: { overflowY: 'auto' } } }, React.createElement(Button_1.DefaultButton, null, "Tooltip without scroll"))); }; return TooltipNoScrollExample; }(Utilities_1.BaseComponent)); exports.TooltipNoScrollExample = TooltipNoScrollExample; //# sourceMappingURL=Tooltip.NoScroll.Example.js.map