office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
27 lines • 3.15 kB
JavaScript
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "../PeoplePicker/examples/FloatingPeoplePicker.Basic.Example"], function (require, exports, tslib_1, React, example_app_base_1, FloatingPeoplePicker_Basic_Example_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FloatingPeoplePickerBasicExampleCode = require('!raw-loader!office-ui-fabric-react/src/components/FloatingPicker/PeoplePicker/examples/FloatingPeoplePicker.Basic.Example.tsx');
var FloatingPeoplePickerPage = /** @class */ (function (_super) {
tslib_1.__extends(FloatingPeoplePickerPage, _super);
function FloatingPeoplePickerPage() {
return _super !== null && _super.apply(this, arguments) || this;
}
FloatingPeoplePickerPage.prototype.render = function () {
return (React.createElement(example_app_base_1.ComponentPage, { title: 'FloatingPeoplePicker', componentName: 'FloatingPeoplePickerExample', exampleCards: React.createElement("div", null,
React.createElement(example_app_base_1.ExampleCard, { title: 'Floating People Picker', code: FloatingPeoplePickerBasicExampleCode },
React.createElement(FloatingPeoplePicker_Basic_Example_1.FloatingPeoplePickerTypesExample, null))), propertiesTables: React.createElement(example_app_base_1.PropertiesTableSet, { sources: [
require('!raw-loader!office-ui-fabric-react/src/components/FloatingPicker/BaseFloatingPicker.types.ts')
] }), overview: React.createElement("div", null,
React.createElement("span", null, " FloatingPeoplePicker are used to pick recipients but do not need a well or necessarily keep track of selected people")), isHeaderVisible: this.props.isHeaderVisible, bestPractices: React.createElement("div", null, "The FloatingPeoplePicker is used to select one or more entities, such as people or groups. Entry points for PeoplePickers are typically specialized TextField-like input fields known as a \"well\", which are used to search for recipients from a list. When a recipient is selected from the list, it is added to the well as a specialized Persona that can be interacted with or removed. Clicking on a Persona from the well should invoke a PersonaCard or open a profile pane for that recipient."), dos: React.createElement("div", null,
React.createElement("ul", null,
React.createElement("li", null, "Use the FloatingPeoplePicker to quickly search for a few people"))), donts: React.createElement("div", null,
React.createElement("ul", null,
React.createElement("li", null, "Use the FloatingPeoplePicker to select something other than people"),
React.createElement("li", null, "Use the FloatingPeoplePicker without sufficient space"))) }));
};
return FloatingPeoplePickerPage;
}(React.Component));
exports.FloatingPeoplePickerPage = FloatingPeoplePickerPage;
});
//# sourceMappingURL=FloatingPeoplePickerPage.js.map