office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
31 lines • 3.46 kB
JavaScript
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/ScrollablePane.Default.Example", "./examples/ScrollablePane.DetailsList.Example"], function (require, exports, tslib_1, React, example_app_base_1, ScrollablePane_Default_Example_1, ScrollablePane_DetailsList_Example_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var ScrollablePaneDefaultExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ScrollablePane/examples/ScrollablePane.Default.Example.tsx');
var ScrollablePaneDetailsListExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/ScrollablePane/examples/ScrollablePane.DetailsList.Example.tsx');
var ScrollablePanePage = (function (_super) {
tslib_1.__extends(ScrollablePanePage, _super);
function ScrollablePanePage() {
return _super !== null && _super.apply(this, arguments) || this;
}
ScrollablePanePage.prototype.render = function () {
return (React.createElement(example_app_base_1.ComponentPage, { title: 'ScrollablePane', componentName: 'ScrollablePaneExample', exampleCards: React.createElement("div", null,
React.createElement(example_app_base_1.ExampleCard, { title: 'Default', code: ScrollablePaneDefaultExampleCode },
React.createElement(ScrollablePane_Default_Example_1.ScrollablePaneDefaultExample, null)),
React.createElement(example_app_base_1.ExampleCard, { title: 'DetailsList Locked Header', code: ScrollablePaneDetailsListExampleCode },
React.createElement(ScrollablePane_DetailsList_Example_1.ScrollablePaneDetailsListExample, null))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [
require('!raw-loader!office-ui-fabric-react/src/components/ScrollablePane/ScrollablePane.Props.ts')
] }), overview: React.createElement("div", null,
React.createElement("p", null, "ScrollablePane is a helper component designed to use in conjunction with a Sticky component. Sticky components will \"stick\" to the top or bottom of a ScrollablePane's scrollable region and remain visible. ScrollablePane requires a height or max-height set either on the component itself, or on the immediate parent element.")), bestPractices: React.createElement("div", null), dos: React.createElement("div", null,
React.createElement("ul", null,
React.createElement("li", null, "Ensure that a parent component has a CSS height, or max-height attribute set (and any intermediary containers have an inherit, or explicit height/max-height set)."),
React.createElement("li", null, "Use Sticky component on block level elements"),
React.createElement("li", null, "Sticky component are ideally section headers and/or footers"))), donts: React.createElement("div", null,
React.createElement("ul", null,
React.createElement("li", null, "Don't use Sticky on elements with margin top or bottom"))), isHeaderVisible: this.props.isHeaderVisible }));
};
return ScrollablePanePage;
}(React.Component));
exports.ScrollablePanePage = ScrollablePanePage;
});
//# sourceMappingURL=ScrollablePanePage.js.map