1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00
jellyfin-web/src/components/cardbuilder/peoplecardbuilder.js

28 lines
686 B
JavaScript
Raw Normal View History

2020-06-04 19:05:31 +03:00
/* eslint-disable indent */
2018-10-23 01:05:09 +03:00
2020-06-04 19:05:31 +03:00
/**
* Module for building cards from item data.
* @module components/cardBuilder/peoplecardbuilder
*/
import cardBuilder from './cardBuilder';
2020-06-04 19:05:31 +03:00
export function buildPeopleCards(items, options) {
2018-10-23 01:05:09 +03:00
options = Object.assign(options || {}, {
cardLayout: false,
centerText: true,
showTitle: true,
cardFooterAside: 'none',
showPersonRoleOrType: true,
cardCssClass: 'personCard',
defaultCardImageIcon: 'person'
});
cardBuilder.buildCards(items, options);
2018-10-23 01:05:09 +03:00
}
2020-06-04 19:05:31 +03:00
/* eslint-enable indent */
2020-06-04 19:05:31 +03:00
export default {
buildPeopleCards: buildPeopleCards
};