Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kuuhaku's avatar

powergrid change default style

public function setUp(): array
    {
        $this->showCheckBox();

        return [
            Exportable::make('export')
                ->striped()
                ->type(Exportable::TYPE_XLS, Exportable::TYPE_CSV),
            Header::make()->showSearchInput()
                ->showToggleColumns(),
            Footer::make()
                ->showPerPage($this->perPage, $this->perPageValues)
                ->showRecordCount(),

        ];
    }

how change default class style fot this element

this is a powergrid datatable

for this one for example >showSearchInput()

0 likes
2 replies
kuuhaku's avatar

and there is somthing more i cant use my all tailwindCss class here like on btn i try make defferent color like bg-slate-400 but noting change i can use somting like bg-sky-500.

 public function actions(\Spatie\Permission\Models\Role $row): array
    {
        return [
            Button::add('edit')
                ->slot('<svg  viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160V416c0 53 43 96 96 96H352c53 0 96-43 96-96V320c0-17.7-14.3-32-32-32s-32 14.3-32 32v96c0 17.7-14.3 32-32 32H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H96z"></path></svg> ')
                ->id()
                ->class('h-6 w-6 fill-sky-500')
                ->dispatch('edit', ['rowId' => $row->id])
        ];
    }

like here

1 like

Please or to participate in this conversation.