{"id":21504424,"url":"https://github.com/dcasia/expandable-table-row","last_synced_at":"2025-07-16T00:32:10.605Z","repository":{"id":199504186,"uuid":"702760063","full_name":"dcasia/expandable-table-row","owner":"dcasia","description":"Provides an easy way to append extra data to each row of your resource tables.","archived":false,"fork":false,"pushed_at":"2023-10-28T08:33:45.000Z","size":1111,"stargazers_count":15,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-07T02:47:40.725Z","etag":null,"topics":["expandable","laravel","nova4","table"],"latest_commit_sha":null,"homepage":"","language":"Vue","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcasia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null},"funding":{"github":"milewski","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-10-10T00:51:00.000Z","updated_at":"2024-09-01T10:20:13.000Z","dependencies_parsed_at":"2023-10-25T16:30:56.305Z","dependency_job_id":null,"html_url":"https://github.com/dcasia/expandable-table-row","commit_stats":null,"previous_names":["dcasia/expandable-table-row"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcasia%2Fexpandable-table-row","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcasia%2Fexpandable-table-row/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcasia%2Fexpandable-table-row/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcasia%2Fexpandable-table-row/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcasia","download_url":"https://codeload.github.com/dcasia/expandable-table-row/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226084432,"owners_count":17571155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["expandable","laravel","nova4","table"],"created_at":"2024-11-23T18:59:54.492Z","updated_at":"2024-11-23T18:59:55.061Z","avatar_url":"https://github.com/dcasia.png","language":"Vue","funding_links":["https://github.com/sponsors/milewski"],"categories":[],"sub_categories":[],"readme":"# Expandable Table Row\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/digital-creative/expandable-table-row)](https://packagist.org/packages/digital-creative/expandable-table-row)\n[![Total Downloads](https://img.shields.io/packagist/dt/digital-creative/expandable-table-row)](https://packagist.org/packages/digital-creative/expandable-table-row)\n[![License](https://img.shields.io/packagist/l/digital-creative/expandable-table-row)](https://github.com/dcasia/expandable-table-row/blob/main/LICENSE)\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/dcasia/expandable-table-row/main/screenshots/dark.png\"\u003e\n  \u003cimg alt=\"Expandable Table Row in Action\" src=\"https://raw.githubusercontent.com/dcasia/expandable-table-row/main/screenshots/light.png\"\u003e\n\u003c/picture\u003e\n\nProvides an easy way to append extra data to each row of your resource tables.\n\n# Installation\n\nYou can install the package via composer:\n\n```\ncomposer require digital-creative/expandable-table-row\n```\n\n## Basic Usage\n\nTo use the new functionality, all you need to do is add the `-\u003eexpandableRowData()` method to your field definition \nand return any class that extends Nova Field or an array of fields.\n\n```php\nclass UserResource extends Resource\n{\n    public function fields(NovaRequest $request): array\n    {\n        return [\n            //...\n            Text::make('First Name')-\u003eexpandableRowData(function () {\n                return [\n                    Line::make(null)-\u003edisplayUsing(fn () =\u003e 'Name')-\u003easSubTitle(),\n                    Text::make('Full Name', fn (User $user) =\u003e sprintf('%s %s',$user-\u003efirst_name, $user-\u003elast_name))-\u003ecopyable(),\n                    Text::make('Email')-\u003ecopyable(),\n                ];\n            }),\n    \n            Text::make('Last Name')-\u003eexpandableRowData(function () {\n                return [\n                    Line::make(null)-\u003edisplayUsing(fn () =\u003e 'Address')-\u003easSubTitle(),\n                    Text::make('Country'),\n                    Text::make('Address', fn (User $user) =\u003e sprintf(\n                        '%s, %s, %s - %s', $user-\u003ecity, $user-\u003estate, $user-\u003eaddress, $user-\u003ezipcode\n                    ))-\u003ecopyable(),\n                ];\n            }),\n            //...          \n        ];\n    }\n}\n```\n\n## Settings\n\nYou can configure several options by using `-\u003eexpandableRowOptions()`. Below, you'll find an explanation of each.\n\n```php\npublic function fields(NovaRequest $request): array\n{\n    return [\n        Text::make('...')-\u003eexpandableRowOptions([\n            'span' =\u003e 2, // This makes the metadata take X much more columns.\n            'expanded_by_default' =\u003e true, // This makes the table row start expanded by default.\n            'preallocate_column_width' =\u003e true, // This will avoid the table column shifting when expanding / collapsing.\n        ]),\n    ];\n}\n```\n\n## ⭐️ Show Your Support\n\nPlease give a ⭐️ if this project helped you!\n\n### Other Packages You Might Like\n\n- [Nova Dashboard](https://github.com/dcasia/nova-dashboard) - The missing dashboard for Laravel Nova!\n- [Nova Welcome Card](https://github.com/dcasia/nova-welcome-card) - A configurable version of the `Help card` that comes with Nova.\n- [Icon Action Toolbar](https://github.com/dcasia/icon-action-toolbar) - Replaces the default boring action menu with an inline row of icon-based actions.\n- [Expandable Table Row](https://github.com/dcasia/expandable-table-row) - Provides an easy way to append extra data to each row of your resource tables.\n- [Collapsible Resource Manager](https://github.com/dcasia/collapsible-resource-manager) - Provides an easy way to order and group your resources on the sidebar.\n- [Resource Navigation Tab](https://github.com/dcasia/resource-navigation-tab) - Organize your resource fields into tabs.\n- [Resource Navigation Link](https://github.com/dcasia/resource-navigation-link) - Create links to internal or external resources.\n- [Nova Mega Filter](https://github.com/dcasia/nova-mega-filter) - Display all your filters in a card instead of a tiny dropdown!\n- [Nova Pill Filter](https://github.com/dcasia/nova-pill-filter) - A Laravel Nova filter that renders into clickable pills.\n- [Nova Slider Filter](https://github.com/dcasia/nova-slider-filter) - A Laravel Nova filter for picking range between a min/max value.\n- [Nova Range Input Filter](https://github.com/dcasia/nova-range-input-filter) - A Laravel Nova range input filter.\n- [Nova FilePond](https://github.com/dcasia/nova-filepond) - A Nova field for uploading File, Image and Video using Filepond.\n- [Custom Relationship Field](https://github.com/dcasia/custom-relationship-field) - Emulate HasMany relationship without having a real relationship set between resources.\n- [Column Toggler](https://github.com/dcasia/column-toggler) - A Laravel Nova package that allows you to hide/show columns in the index view.\n- [Batch Edit Toolbar](https://github.com/dcasia/batch-edit-toolbar) - Allows you to update a single column of a resource all at once directly from the index page.\n\n## License\n\nThe MIT License (MIT). Please see [License File](https://raw.githubusercontent.com/dcasia/expandable-table-row/master/LICENSE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcasia%2Fexpandable-table-row","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcasia%2Fexpandable-table-row","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcasia%2Fexpandable-table-row/lists"}