office-ui-fabric-react
Version: 
Reusable React components for building experiences for Office 365.
29 lines (27 loc) • 2.26 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var example_app_base_1 = require("@uifabric/example-app-base");
var Rating_Basic_Example_1 = require("./examples/Rating.Basic.Example");
var RatingBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/Rating/examples/Rating.Basic.Example.tsx');
var RatingPage = (function (_super) {
    tslib_1.__extends(RatingPage, _super);
    function RatingPage() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    RatingPage.prototype.render = function () {
        return (React.createElement(example_app_base_1.ComponentPage, { title: 'Rating', componentName: 'RatingExample', exampleCards: React.createElement(example_app_base_1.ExampleCard, { title: 'Rating', code: RatingBasicExampleCode },
                React.createElement(Rating_Basic_Example_1.RatingBasicExample, null)), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [
                    require('!raw-loader!office-ui-fabric-react/src/components/Rating/Rating.Props.ts')
                ] }), overview: React.createElement("div", null,
                React.createElement("p", null, "Ratings provide insight regarding others\u2019 opinions and experiences with a product, helping users make more-informed purchasing decisions. Users can also rate products they\u2019ve purchased.")), bestPractices: React.createElement("div", null), dos: React.createElement("div", null,
                React.createElement("ul", null,
                    React.createElement("li", null, "Make it clear which product the rating pertains to by making sure the layout and grouping are clear when several products are on the page."))), donts: React.createElement("div", null,
                React.createElement("ul", null,
                    React.createElement("li", null, "Don\u2019t use the rating component for data that has a continuous range, such as the brightness of a photo. Instead, use a slider."))), isHeaderVisible: this.props.isHeaderVisible }));
    };
    return RatingPage;
}(React.Component));
exports.RatingPage = RatingPage;
//# sourceMappingURL=RatingPage.js.map