Code Monkey home page Code Monkey logo

column-toggler's People

Contributors

batinmustu avatar milewski avatar stllmtbrt avatar webard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

column-toggler's Issues

Toggle menu doesn't appears

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

Computed field

Hello

It doesn't work with computed fields.

Text::make(__('Enterprise'), function () {
    return $this->training->enterprise->name;
})

Thanks for this package !

Store column configuration to session

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.

Resource loading issue.

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?

Package is in conflict with shuvroroy/nova-dynamic-views

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.

Column toggler does not work on lenses

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.

Bug that automatically hides all columns for relationships that are not also in the owner model

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:
column-toggler

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!

Toggle menu doesn't appears

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"
}
}
}

Screenshot 2023-11-23 at 19 51 30

No issue.

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 :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.