Download the PHP package team-nifty-gmbh/tall-datatables without Composer

On this page you can find all versions of the php package team-nifty-gmbh/tall-datatables. 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 tall-datatables

A package to create datatables using alpinejs, tailwind, livewire and laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package aims to provide a simple way to create datatables using alpinejs, tailwind, livewire and laravel.

It relies mainly on alpinejs to avoid re-rendering the whole table when something changed.

Requirements

Installation

  1. You can install the package via composer:

  2. Add the scripts tag to your layout BEFORE alpinejs

Keep in mind to follow the wireui installation instructions starting at step 2: https://livewire-wireui.com/docs/get-started

  1. Add the following to your tailwind.config.js

  2. Run vite build to compile the javascript and css files

  3. Publishing the views is optional. If you want to use the default views you can skip this step.

Optionally, you can publish and run the migrations with:

Optionally, you can publish the config file with:

Optionally, you can publish the views using

Configuration

By default the package caches the state of the table in the session. If you want to disable this feature, you can set the cache option to false in the .env file.

The caching is done per datatable. If you want to use your datatable in a different context you should set a different cache key. In your blade file pass the cache key to the component.

You have to ensure that all cache-keys you set across your application are unique.

Usage

This command creates a new DataTable class.

Inside this class you should define at least the columns you want to display

Choosing a layout

By default, the table is rendered as a table. You can change the layout by overriding the getLayout method.

This package delivers 2 layouts: 'tall-datatables::layouts.grid' and 'tall-datatables::layouts.table'

You can also create your own layout by creating a blade file inside the resources/views/components folder.

Using your own view

If you want to use your own view as a wrapper around the layout you can override the $view property.

Your view should include the default data-table wrapper:

Adding Buttons to the table

You can add buttons to the table by overriding the getTableActions method. Check the WireUi documentation for the available options.

These buttons will be rendered above the table on the right side. If your table has search enabled, the buttons will be rendered on the right side of the search input.

NOTE: My advice is to embed the datatable inside another component and use the wire:ignore directive to avoid re-rendering the whole page. The "Create" button could dispatch an alpinejs event to the parent component. The listener could trigger a livewire function to render the create form.

Adding Buttons to a row

NOTE: Keep in mind that tall-datatables relies on alpinejs to render the data.

Each row is rendered using the x-for directive. This means that every record is available as a variable called record.

Remember that the record variable contains only the columns that are returned by the getReturnKeys php method. The Model key is always available.

You can add buttons to a row by overriding the getRowActions method. Check the WireUi documentation for the available options.

TIP: If you want to prevent the row-clicked event to be dispatched on a button click add the $event.stopPropagation() method to the button attributes. php public function getBottomAppends(): array { return [ 'name' => 'email', ]; }

public function getLeftAppends(): array { return [ 'name' => 'avatar', ]; } html

html <livewire:data-tables.user-data-table :searchable="false" :filters="[['is_active' => true]]" /> html

html

js import Alpine from 'alpinejs'; import intersect from '@alpinejs/intersect';

Alpine.plugin(intersect);

window.Alpine = Alpine;

Alpine.start(); bash composer test



## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Contributing

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

## Security Vulnerabilities

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

## Credits

- [Patrick Weh](https://github.com/patrickweh)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

All versions of tall-datatables with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
laravel/framework Version ^9.49|^10.0|^11.0
livewire/livewire Version ^3.1
maatwebsite/excel Version ^3.1
spatie/laravel-model-info Version ^1.0|^2.0
wireui/wireui Version ^1.17
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 team-nifty-gmbh/tall-datatables contains the following files

Loading the files please wait ....