office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
29 lines • 3.13 kB
JavaScript
define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Link", "office-ui-fabric-react/lib/Layer", "@uifabric/example-app-base", "./examples/Tooltip.Custom.Example", "./examples/Tooltip.Basic.Example", "./examples/Tooltip.Overflow.Example", "../../demo/ComponentStatus/ComponentStatus", "./Tooltip.checklist", "./TooltipPage.scss"], function (require, exports, tslib_1, React, Link_1, Layer_1, example_app_base_1, Tooltip_Custom_Example_1, Tooltip_Basic_Example_1, Tooltip_Overflow_Example_1, ComponentStatus_1, Tooltip_checklist_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var TooltipBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Tooltip/examples/Tooltip.Basic.Example.tsx');
var TooltipCustomExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Tooltip/examples/Tooltip.Custom.Example.tsx');
var TooltipOverflowExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Tooltip/examples/Tooltip.Overflow.Example.tsx');
var TooltipPage = /** @class */ (function (_super) {
tslib_1.__extends(TooltipPage, _super);
function TooltipPage() {
return _super !== null && _super.apply(this, arguments) || this;
}
TooltipPage.prototype.render = function () {
return (React.createElement(example_app_base_1.ComponentPage, { title: 'Tooltip', componentName: 'TooltipExample', exampleCards: React.createElement(Layer_1.LayerHost, null,
React.createElement(example_app_base_1.ExampleCard, { title: 'Default Tooltip', code: TooltipBasicExampleCode },
React.createElement(Tooltip_Basic_Example_1.TooltipBasicExample, null)),
React.createElement(example_app_base_1.ExampleCard, { title: 'Tooltip with list', code: TooltipCustomExampleCode },
React.createElement(Tooltip_Custom_Example_1.TooltipCustomExample, null)),
React.createElement(example_app_base_1.ExampleCard, { title: 'Tooltip only on overflow', code: TooltipOverflowExampleCode },
React.createElement(Tooltip_Overflow_Example_1.TooltipOverflowExample, null))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [
require('!raw-loader!office-ui-fabric-react/src/components/Tooltip/Tooltip.types.ts')
] }), overview: React.createElement("div", null,
React.createElement(Link_1.Link, { target: '_blank', href: 'http://dev.office.com/fabric/components/Tooltip' }, "Tooltips"),
React.createElement("span", null, " supplement content associated with a specific UI component.")), isHeaderVisible: this.props.isHeaderVisible, componentStatus: React.createElement(ComponentStatus_1.ComponentStatus, tslib_1.__assign({}, Tooltip_checklist_1.TooltipStatus)) }));
};
return TooltipPage;
}(React.Component));
exports.TooltipPage = TooltipPage;
});
//# sourceMappingURL=TooltipPage.js.map