2023-10-02 10:46:09 +00:00
|
|
|
import BaseStyle from 'primevue/base/style';
|
|
|
|
|
|
|
|
const classes = {
|
2024-01-30 11:27:56 +00:00
|
|
|
root: ({ props }) => [
|
2024-03-20 07:00:27 +00:00
|
|
|
'p-selectbutton p-component',
|
2024-01-30 11:27:56 +00:00
|
|
|
{
|
|
|
|
'p-disabled': props.disabled,
|
|
|
|
'p-invalid': props.invalid
|
|
|
|
}
|
|
|
|
],
|
2023-10-02 10:46:09 +00:00
|
|
|
button: ({ instance, option }) => [
|
2024-03-20 07:00:27 +00:00
|
|
|
'p-selectbutton-button',
|
2023-10-02 10:46:09 +00:00
|
|
|
{
|
|
|
|
'p-highlight': instance.isSelected(option),
|
|
|
|
'p-disabled': instance.isOptionDisabled(option)
|
|
|
|
}
|
|
|
|
],
|
2024-03-20 07:00:27 +00:00
|
|
|
label: 'p-selectbutton-label'
|
2023-10-02 10:46:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default BaseStyle.extend({
|
|
|
|
name: 'selectbutton',
|
2023-10-04 09:20:15 +00:00
|
|
|
classes
|
2023-10-02 10:46:09 +00:00
|
|
|
});
|