office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
27 lines • 2.88 kB
JavaScript
import * as tslib_1 from "tslib";
import * as React from 'react';
import { ExampleCard, ComponentPage, PropertiesTableSet } from '@uifabric/example-app-base';
import { FloatingPeoplePickerTypesExample } from '../PeoplePicker/examples/FloatingPeoplePicker.Basic.Example';
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(ComponentPage, { title: 'FloatingPeoplePicker', componentName: 'FloatingPeoplePickerExample', exampleCards: React.createElement("div", null,
React.createElement(ExampleCard, { title: 'Floating People Picker', code: FloatingPeoplePickerBasicExampleCode },
React.createElement(FloatingPeoplePickerTypesExample, null))), propertiesTables: React.createElement(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));
export { FloatingPeoplePickerPage };
//# sourceMappingURL=FloatingPeoplePickerPage.js.map