Skip to content

Pagination with slots for font-awesome #1870

Closed
@kyleweishaupt

Description

@kyleweishaupt

I'm trying to use the Pagination component but I was hoping to use font-awesome icons instead of just text. I looked through the code and couldn't figure out any way to use a scoped slot or anything else to make it work. If possible, I'd love to be able to do something like this:

<b-pagination :total-rows="total" :limit="5" :per-page="per_page">
    <template slot="first-text">
        <font-awesome-icon icon="fast-backward />
    </template>
    <template slot="last-text">
        <font-awesome-icon icon="fast-forward />
    </template>
</b-pagination>

If anyone knows a way please let me know. Thanks for the great package!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions