dcasia / column-toggler Goto Github PK
View Code? Open in Web Editor NEWA Laravel Nova package that allows you to hide/show columns in the index view.
License: MIT License
A Laravel Nova package that allows you to hide/show columns in the index view.
License: MIT License
Hi,
I've just installed your component but toggle menu doesn't appears on the index view
Any idea of what occurs?
I've got similar issue with your expandable row component
Regards
Hello
It doesn't work with computed fields.
Text::make(__('Enterprise'), function () {
return $this->training->enterprise->name;
})
Thanks for this package !
Hello,
Will be great if selected/unselected columns will be stored to session or database or other storage. This will cause the column configuration on resources to be preserved across devices.
Hi,
I am using Laravel 10.30.0, and Toggler does not show up in Nova4. Can you take a look? Thank you very much
Hi!
First of all thank you so much for this package. It helps a lot to show/hide columns. I have just installed package inside brand new Nova 4.23 with Laravel 9.5 and there is one thing I would like to ask about: When I'm going to resource index view and index table is being loaded, it looks fine. But when index table is loaded, just in the same second is reloaded again. I checked this behavior of index table with more resources and all of them behave the same. Index table is loaded and loaded again. Is it normal for this package or it is a issue?
Hello,
after installing shuvroroy/nova-dynamic-views
package, Column Toggler stop works on Lenses. On Resources everything is fine. I didn't dig deeper, probably nova-dynamic-views
package hooks to the same component (lens-header?) as this package. The mystery is why this package works correctly on resources.
Hi,
after adding ColumnTogglerTrait
trait to Lens, nothing happens. Unfortunately I can't find the reason, but I see mentions of lenses in tool.js
file.
First off, I'm glad that you created this package! Being able to hide columns (and by default!) is amazing.
The package works as expected on index pages, but on any relationship, most of the columns are hidden by default. Take a look at this gif:
You can see when I refresh the page, I see all of my columns for an instant and then it starts hiding them until I am left with columns that are both in the parent model and the relationship's model. I was able to track down this error to the ColumnTogglerTrait.php
file on lines 43-45 where the fields are filtered by the columnToggler
request array. This array contains a list of the parent model's enabled columns, not the relationship's columns. Because I only have the ID
and UID
columns in common between most of my relationships, I can only see those two columns. I have been able to see additional columns (ie "languages") when both the main model and the model of its relation have that column.
Due to this bug, I won't be able to use this package, but when this gets fixed, I will definitely give it another try!
Can't make it appear.
Any suggestion?
Thank you
Composer.json:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.1",
"barryvdh/laravel-dompdf": "^2.0",
"degecko/nova-filters-summary": "^2.0",
"digital-creative/column-toggler": "^0.1.1",
"guzzlehttp/guzzle": "^7.2",
"kabbouchi/nova-logs-tool": "^2.2",
"laravel/framework": "^10.0",
"laravel/nova": "~4.0",
"laravel/sanctum": "^3.2",
"laravel/tinker": "^2.8",
"maatwebsite/excel": "^3.1",
"maatwebsite/laravel-nova-excel": "^1.3",
"padocia/laravel-nova-pdf": "^1.0",
"spatie/laravel-permission": "^5.10",
"vyuldashev/nova-permission": "^3.2",
"waynestate/nova-text-copy-field": "^2.0"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.9",
"barryvdh/laravel-ide-helper": "^2.13",
"fakerphp/faker": "^1.9.1",
"laravel/pint": "^1.0",
"laravel/sail": "^1.18",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^7.0",
"phpunit/phpunit": "^10.0",
"spatie/laravel-ignition": "^2.0"
},
"autoload": {
"psr-4": {
"App\": "app/",
"Database\Factories\": "database/factories/",
"Database\Seeders\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\": "tests/"
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\Foundation\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force",
"@php artisan nova:publish",
"@php artisan ide-helper:generate",
"@php artisan ide-helper:meta",
"@php artisan ide-helper:models --nowrite"
],
"post-root-package-install": [
"@php -r "file_exists('.env') || copy('.env.example', '.env');""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
],
"post-install-cmd": [
"@php artisan ide-helper:generate",
"@php artisan ide-helper:meta",
"@php artisan ide-helper:models --nowrite"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true,
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"prefer-stable": true,
"repositories": {
"nova": {
"type": "composer",
"url": "https://nova.laravel.com"
}
}
}
Hi!
There is no other place to write it, so I will do it here: column sorting is one of the greatest function of this package!
Keep coding :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.