jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/cardbuilder/peoplecardbuilder.js

21 lines
505 B
JavaScript
Raw Normal View History

2016-10-10 23:46:59 -07:00
define(['cardBuilder'], function (cardBuilder) {
2016-10-02 20:49:52 -07:00
'use strict';
2016-07-28 19:42:42 -07:00
function buildPeopleCards(items, options) {
2016-10-10 23:46:59 -07:00
options = Object.assign(options || {}, {
cardLayout: true,
centerText: true,
showTitle: true,
cardFooterAside: 'none',
showPersonRoleOrType: true,
cardCssClass: 'personCard'
});
cardBuilder.buildCards(items, options);
2016-07-28 19:42:42 -07:00
}
return {
buildPeopleCards: buildPeopleCards
};
});