primevue-mirror/components/lib/dataview/style/DataViewStyle.js

22 lines
617 B
JavaScript
Raw Normal View History

import BaseStyle from 'primevue/base/style';
const classes = {
root: ({ props }) => [
'p-dataview p-component',
{
'p-dataview-list': props.layout === 'list',
'p-dataview-grid': props.layout === 'grid'
}
],
header: 'p-dataview-header',
paginator: ({ instance }) => (instance.paginatorTop ? 'p-paginator-top' : instance.paginatorBottom ? 'p-paginator-bottom' : ''),
content: 'p-dataview-content',
emptyMessage: 'p-dataview-emptymessage',
footer: 'p-dataview-footer'
};
export default BaseStyle.extend({
name: 'dataview',
2023-10-04 09:20:15 +00:00
classes
});