solutionforest / filament-tab-plugin

MIT License
15 stars 1 forks source link

widgets in tab #1

Closed HomaEEE closed 1 year ago

HomaEEE commented 1 year ago

Hello, can you add support for widget, it will improve expertise in create dashboard

lam0819 commented 1 year ago

What do you mean? You can add a widget already.

class DummyTabsWidget extends BaseWidget
{
    protected function schema(): array
    {
        return [
            TabLayoutTab::make('Label 1')
                ->icon('heroicon-o-bell')
                ->badge('39')
                ->schema([
                    new AccountWidget(),
                ]),
            TabLayoutTab::make('Label 2')
                ->schema([
                    new FilamentInfoWidget(),
                ]),
        ];
    }
}