primevue-mirror/components/lib/paginator/FirstPageLink.vue

39 lines
993 B
Vue
Raw Normal View History

2022-09-06 12:03:37 +00:00
<template>
<button v-ripple :class="cx('first')" type="button" v-bind="getPTOptions('first')" data-pc-group-section="pagebutton">
<component :is="template || 'AngleDoubleLeftIcon'" :class="cx('firstIcon')" v-bind="getPTOptions('firstIcon')" />
2022-09-14 11:26:01 +00:00
</button>
2022-09-06 12:03:37 +00:00
</template>
<script>
2023-05-08 09:35:25 +00:00
import BaseComponent from 'primevue/basecomponent';
import AngleDoubleLeftIcon from 'primevue/icons/angledoubleleft';
2022-09-06 12:03:37 +00:00
import Ripple from 'primevue/ripple';
export default {
name: 'FirstPageLink',
2023-07-04 06:29:36 +00:00
hostName: 'Paginator',
2023-05-08 09:35:25 +00:00
extends: BaseComponent,
props: {
template: {
type: Function,
default: null
}
},
2023-05-08 09:35:25 +00:00
methods: {
getPTOptions(key) {
return this.ptm(key, {
context: {
disabled: this.$attrs.disabled
}
});
}
},
components: {
AngleDoubleLeftIcon: AngleDoubleLeftIcon
},
2022-09-06 12:03:37 +00:00
directives: {
2022-09-14 11:26:01 +00:00
ripple: Ripple
2022-09-06 12:03:37 +00:00
}
2022-09-14 11:26:01 +00:00
};
2022-09-06 12:03:37 +00:00
</script>