2019-01-10 15:39:37 +03:00
|
|
|
define(['cardBuilder'], function (cardBuilder) {
|
|
|
|
'use strict';
|
2018-10-23 01:05:09 +03:00
|
|
|
|
|
|
|
function buildPeopleCards(items, options) {
|
2019-01-10 15:39:37 +03:00
|
|
|
|
2018-10-23 01:05:09 +03:00
|
|
|
options = Object.assign(options || {}, {
|
2019-01-10 15:39:37 +03:00
|
|
|
cardLayout: false,
|
|
|
|
centerText: true,
|
|
|
|
showTitle: true,
|
|
|
|
cardFooterAside: 'none',
|
|
|
|
showPersonRoleOrType: true,
|
|
|
|
cardCssClass: 'personCard',
|
|
|
|
defaultCardImageIcon: ''
|
|
|
|
});
|
|
|
|
cardBuilder.buildCards(items, options);
|
2018-10-23 01:05:09 +03:00
|
|
|
}
|
2019-01-10 15:39:37 +03:00
|
|
|
|
2018-10-23 01:05:09 +03:00
|
|
|
return {
|
|
|
|
buildPeopleCards: buildPeopleCards
|
2019-01-10 15:39:37 +03:00
|
|
|
};
|
|
|
|
|
2018-10-23 01:05:09 +03:00
|
|
|
});
|