Download the PHP package shkubu18/filament-widget-tabs without Composer

On this page you can find all versions of the php package shkubu18/filament-widget-tabs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-widget-tabs

Widget Tabs Plugin

Installation

You can install the package via composer:

In an effort to align with Filament's theming methodology you will need to use a custom theme to use this plugin.

[!IMPORTANT] If you have not set up a custom theme and are using a Panel follow the instructions in the Filament Docs.

  1. Import the plugin's stylesheet in your theme's css file.

  2. Add the plugin's views to your tailwind.config.js file.

Publishing Views

If you need to customize the views, you can publish them with:

Usage

Filament Widget Tabs works similarly to Filament Tabs, but displays each tab as a “widget” that can filter your resource’s table with a single click.

1. Add the HasWidgetTabs trait

Add the HasWidgetTabs trait to your Filament resource page.

2. Implement the getWidgetTabs() method

Define your widget tabs by implementing the getWidgetTabs() method in your page class. Each tab is created with the WidgetTab::make() component, allowing you to specify label, icon, value, and filtering behavior:

That's all you need to get started with Widget Tabs! Your resource list page will now display beautiful widget-style tabs that filter your table data just like default Filament tabs, but with the added benefit of displaying important data values within each tab widget.

Auto-loading Default Active Widget Tab

By default, widget tabs will not automatically load a default active widget tab when the page mounts. If you want to enable automatic loading of the default widget tab, you can override the shouldAutoLoadDefaultActiveWidgetTab method in your page class:

Widget Tabs Layout

You can customize how many widget tabs appear in each row by overriding the getWidgetsPerRow() method in your page class:

Labels

Add a descriptive label to your widget tab:

Icons

Add an icon to visually enhance your widget tab:

You can also specify the icon size:

Values

Display a count or other relevant value in your widget tab:

You can control the decimal precision of numeric values:

Percentages

When enabled, the percentage method formats your value as a percentage, displaying it with a % symbol instead of as a regular number:

You can control the decimal precision of percentage values independently from regular numeric values, giving you fine-grained control over how different types of data are displayed:

Extra Attributes

Add extra HTML attributes to your widget tab:

Query Modification

Filter the resource table based on the selected tab:

Or use the shorter query() method:

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of filament-widget-tabs with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.0
spatie/laravel-package-tools Version ^1.15.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package shkubu18/filament-widget-tabs contains the following files

Loading the files please wait ....