2022-09-06 12:03:37 +00:00
|
|
|
<template>
|
2023-03-28 12:20:20 +00:00
|
|
|
<div class="p-toolbar p-component" role="toolbar" :aria-labelledby="ariaLabelledby" v-bind="ptm('root')">
|
2023-04-19 08:00:52 +00:00
|
|
|
<div class="p-toolbar-group-start p-toolbar-group-left" v-bind="ptm('start')">
|
2022-09-06 12:03:37 +00:00
|
|
|
<slot name="start"></slot>
|
|
|
|
</div>
|
2023-04-19 08:00:52 +00:00
|
|
|
<div class="p-toolbar-group-center" v-bind="ptm('center')">
|
2022-12-08 11:04:25 +00:00
|
|
|
<slot name="center"></slot>
|
|
|
|
</div>
|
2023-04-19 08:00:52 +00:00
|
|
|
<div class="p-toolbar-group-end p-toolbar-group-right" v-bind="ptm('end')">
|
2022-09-06 12:03:37 +00:00
|
|
|
<slot name="end"></slot>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-03-31 21:51:41 +00:00
|
|
|
import BaseComponent from 'primevue/basecomponent';
|
2022-09-06 12:03:37 +00:00
|
|
|
export default {
|
2022-09-14 11:26:01 +00:00
|
|
|
name: 'Toolbar',
|
2023-03-31 21:51:41 +00:00
|
|
|
extends: BaseComponent,
|
2022-09-14 11:26:01 +00:00
|
|
|
props: {
|
|
|
|
'aria-labelledby': {
|
|
|
|
type: String,
|
|
|
|
default: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
2022-09-06 12:03:37 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.p-toolbar {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
}
|
|
|
|
|
2022-12-08 11:04:25 +00:00
|
|
|
.p-toolbar-group-start,
|
|
|
|
.p-toolbar-group-center,
|
|
|
|
.p-toolbar-group-end {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
2022-09-06 12:03:37 +00:00
|
|
|
.p-toolbar-group-left,
|
|
|
|
.p-toolbar-group-right {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
</style>
|