2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
2024-02-16 11:07:34 +00:00
|
|
|
root: 'p-dataview-layout-options p-selectbutton p-button-group',
|
2023-10-02 10:46:09 +00:00
|
|
|
listButton: ({ props }) => [
|
|
|
|
'p-button p-button-icon-only',
|
|
|
|
{
|
|
|
|
'p-highlight': props.modelValue === 'list'
|
|
|
|
}
|
|
|
|
],
|
|
|
|
gridButton: ({ props }) => [
|
|
|
|
'p-button p-button-icon-only',
|
|
|
|
{
|
|
|
|
'p-highlight': props.modelValue === 'grid'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'dataviewlayoutoptions',
|
2023-10-04 09:20:15 +00:00
|
|
|
classes
|
2023-10-02 10:46:09 +00:00
|
|
|
});
|