Skip to content

Striped feature and TailwindStriped Helper #1442

Answered by dansysanalyst
esshevelev asked this question in Q&A
Discussion options

You must be logged in to vote

The "TailwindStriped" is a custom theme. You can read more about custom themes here.

You can create a new class in your application, let's useApp\Support\TailwindStriped as an example.

Copy the content from the demo repository App\Helpers\PowerGridThemes\TailwindStriped in this class:

<?php

namespace App\Support;

use PowerComponents\LivewirePowerGrid\Themes\Components\Table;
use PowerComponents\LivewirePowerGrid\Themes\Tailwind;
use PowerComponents\LivewirePowerGrid\Themes\Theme;

class TailwindStriped extends Tailwind
{
    public function table(): Table
    {
        return Theme::table('min-w-full dark:bg-neutral-800')
            ->div('rounded-t-lg relative border-x border-t border…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by esshevelev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1440 on March 01, 2024 10:19.