protonemedia / inertiajs-tables-laravel-query-builder

Inertia.js Tables for Laravel Query Builder
https://protone.media/en/blog/introducing-inertiajs-tables-a-datatables-like-package-for-laravel-query-builder
MIT License
438 stars 127 forks source link

Is it possible to use slots inside of slots or is there any documentation with examples of each of them? #96

Closed grafxflow closed 1 year ago

grafxflow commented 1 year ago

Is it possible to use slots inside of slots or is there any documentation on the usage of them all of them such as 'tableWrapper' ?

Or is it possible for me to dupe the views and have more control over the class names etc such as 'php artisan vendor:publish --provider'?

<template>
    <Table>
        <template v-slot:tableWrapper="slotProps">
            <div class="custom-class">
                <template v-slot:tableGlobalSearch="slotProps">
                    <input
                    placeholder="Custom Global Search Component..."
                    @input="slotProps.onChange($event.target.value)"
                    />
                </template>
            </div>  
        </template>
    </Table>
</template>
grafxflow commented 1 year ago

For now I have had to duplicate the Components and add an alias for the new directory.

dlearningfr commented 1 year ago

For now I have had to duplicate the Components and add an alias for the new directory.

Could you tell how you did it ? I'm looking to remove some classes from TableWrapper because it's a mess right now. I think some other way would be nice.