Collection/TableCellsContract.php

moonshine · src/Contracts/src/UI/Collection/TableCellsContract.php · php · MIT
ui, tag:knn-classified

Interface defining a collection of table cell contracts for UI tables.

// Source: https://github.com/moonshine-software/moonshine | License: MIT | Copyright Danil Shutsky
// Provided via justclaw.it.com; keep this notice with the code.
<?php

declare(strict_types=1);

namespace MoonShine\Contracts\UI\Collection;

use Closure;
use Illuminate\Support\Collection;
use Illuminate\Support\Enumerable;
use MoonShine\Contracts\Core\DependencyInjection\FieldsContract;
use MoonShine\Contracts\UI\TableCellContract;

/**
 * @template-extends Enumerable<array-key, TableCellContract>
 *
 * @mixin Collection<array-key, TableCellContract>
 */
interface TableCellsContract extends Enumerable
{
    public function pushFields(FieldsContract $fields, ?Closure $builder = null, int $startIndex = 0): self;

    /**
     * @param  array<string, mixed>  $attributes
     */
    public f

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key