office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
52 lines (50 loc) • 1.78 kB
JavaScript
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __assign = (this && this.__assign) || Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
var React = require('react');
var index_1 = require('../../../../index');
var facepileProps = {
personas: [
{
personaName: 'Annie Lindqvist',
imageUrl: './images/persona-female.png'
},
{
personaName: 'Greta Lundberg',
imageInitials: 'GL',
initialsColor: index_1.PersonaInitialsColor.green
},
{
personaName: 'Roko Kolar',
imageInitials: 'RK',
initialsColor: index_1.PersonaInitialsColor.purple,
data: 'Emp1234',
onClick: function (ev, persona) {
return alert('You clicked on ' + persona.personaName + '. Extra data: ' + persona.data);
}
}
]
};
var FacepileBasicExample = (function (_super) {
__extends(FacepileBasicExample, _super);
function FacepileBasicExample() {
_super.apply(this, arguments);
}
FacepileBasicExample.prototype.render = function () {
return (React.createElement(index_1.Facepile, __assign({}, facepileProps)));
};
return FacepileBasicExample;
}(React.Component));
exports.FacepileBasicExample = FacepileBasicExample;
//# sourceMappingURL=Facepile.Basic.Example.js.map
;