primevue-mirror/components/lib/orderlist/style/OrderListStyle.js

27 lines
633 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => [
'p-orderlist p-component',
{
'p-orderlist-striped': props.stripedRows
}
],
controls: 'p-orderlist-controls',
2024-01-24 07:02:00 +00:00
container: 'p-orderlist-list-container',
header: 'p-orderlist-header',
list: 'p-orderlist-list',
item: ({ instance, item, id }) => [
'p-orderlist-item',
{
'p-highlight': instance.isSelected(item),
'p-focus': id === instance.focusedOptionId
}
]
};
export default BaseStyle.extend({
name: 'orderlist',
classes
});