Git Product home page Git Product logo

laravel-nova-field-dynamic-select's People

Contributors

bnitobzh avatar crynobone avatar fredrikmikkelsen avatar hubertnnn avatar jbahapp avatar jesperbjoernandersen avatar kayacekovic avatar naoray avatar robertonegro avatar royduin avatar subzero10 avatar ttungbmt avatar zbignevg avatar

Stargazers

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

Watchers

 avatar  avatar

laravel-nova-field-dynamic-select's Issues

Nova Action Modal overflow-hidden clipping the DynamicSelect field

Using the DynamicSelect as a field in an Nova Action.

When you click to see the selections, the list gets clipped by the modal since its set to overflow-hidden by Nova. There's no way to modify the modal settings. And no way to modify the Vue.Multiselect structure.

I had to add in FormField.vue:

.multiselect__content-wrapper{
        position: relative;
    }

But this makes the modal expand and retract on dropdown list. Not optimal.

It is a known issue on for vue-multiselect shentao/vue-multiselect#723 but seems the project seems abandoned.

I wish there were a better way to fix this...

Pivot Table select?

Any idea how to populate the Select from the Vendor Selected?

I am using a pivot table from Vendor Resource:

        `BelongsToMany::make(__('Vendors'), 'vendors', 'App\Nova\Vendor')
            ->fields( new VendorLocationFields()),`

and Fields file function:
`public function __invoke($request, $relatedModel)
{
$dist_centers = \App\Models\DistributionCenter::all()->pluck('name', 'id');

    return [
        Text::make('Account Number')
        Text::make('Vendor Username'),
        Select::make('Distribution Center','distribution_center_id')
            ->displayUsingLabels()
            ->options($dist_centers)
            ,
    ];
}`

Does not work in Action context

I'm currently trying to replace the MorphTo field in the action context, since that doesn't work, but for some reason, this fails as well.

The error message I get is: Call to a member function getOptions() on null

it doesn't install

No publishable resources for tag [laravel-assets]. and I can't find the folder of the package

`PS C:\Users\Manaf\Desktop\New folder\nofa> composer require royduin/laravel-nova-field-dynamic-select
Using version ^1.8 for royduin/laravel-nova-field-dynamic-select
./composer.json has been updated
Running composer update royduin/laravel-nova-field-dynamic-select
Loading composer repositories with package information
Updating dependencies
Lock file operations: 1 install, 0 updates, 0 removals

  • Locking royduin/laravel-nova-field-dynamic-select (1.8.4)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 1 install, 0 updates, 0 removals
  • Downloading royduin/laravel-nova-field-dynamic-select (1.8.4)
  • Installing royduin/laravel-nova-field-dynamic-select (1.8.4): Extracting archive
    Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead.
    Generating optimized autoload files

Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover --ansi
Discovered Package: digital-creative/clickable-table-row
Discovered Package: facade/ignition
Discovered Package: fideloper/proxy
Discovered Package: fruitcake/laravel-cors
Discovered Package: laravel/nova
Discovered Package: laravel/sail
Discovered Package: laravel/tinker
Discovered Package: laravel/ui
Discovered Package: manmohanjit/nova-belongs-to-dependency
Discovered Package: nesbot/carbon
Discovered Package: nunomaduro/collision
Discovered Package: orlyapps/nova-belongsto-depend
Discovered Package: royduin/laravel-nova-field-dynamic-select
Discovered Package: webparking/nova-belongs-to-dependency
Package manifest generated successfully.
83 packages you are using are looking for funding.
Use the composer fund command to find out more!
@php artisan vendor:publish --tag=laravel-assets --ansi
No publishable resources for tag [laravel-assets].
Publishing complete.`

Namespace not found?

Hi,

Whenever I download the package and put in the namespace for the dynamicselect I get this error:
image

Namespace im using is : use Royduin\LaravelNovaFieldDynamicSelect\DynamicSelect;

Nova version: 2.9.4

Commit 97484d3 broke something

Hello,

We've been using the package for some time and noticed the addition of Nova Actions changed how OptionsController::index() handles options and since then our code always run into

local.ERROR: Class name must be a valid object or a string {"userId":2,"exception":"[object] (Error(code: 0): Class name must be a valid object or a string at /srv/vendor/royduin/laravel-nova-field-dynamic-select/src/Http/Controllers/OptionsController.php:97)

Meaning $request->has('action') in line 16 is somehow filled when it shouldn't.

For now, we commented out this if so our code can run as before and we have no idea why the request has action set since we do not use it.

Not sure how to help debug, but if given pointers I'd be glad to help figure out what's going on.

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.