Git Product home page Git Product logo

solutionforest / filament-simplelightbox Goto Github PK

View Code? Open in Web Editor NEW
29.0 1.0 3.0 136 KB

Filament SimpleLightbox is a PHP package that provides a simple and lightweight solution for implementing a lightbox feature in your Filament admin panel. It allows you to easily preview Image, PDF and Office documents within your Filament.

License: MIT License

JavaScript 40.18% PHP 59.82%
filament-plugin filamentphp fslightbox lightbox office-viewer pdf-viewer

filament-simplelightbox's People

Contributors

cklei-carly avatar dependabot[bot] avatar github-actions[bot] avatar lam0819 avatar

Stargazers

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

Watchers

 avatar  avatar

filament-simplelightbox's Issues

Multiple images, show next image - not a bug i think

What happened?

I'm using Spatie medialibrary plugin and i want to show all images (using next and previous arrows to swich images) in lightbox - but using Your plugin I can only show one. Can You tell me is it possible using Your plugin to achieve this ? If not, are You planning on addig this functionality ?

How to reproduce the bug

only one image from collection

Package Version

0.04

PHP Version

8.2

Laravel Version

10

Which operating systems does with happen with?

No response

Notes

No response

[Bug]: Cannot generate URL using closure function

What happened?

I expected to be able to pass dynamically a URL and it would take it dynamically

How to reproduce the bug

Check this code


ImageColumn::make('thumbnail_path')
                    ->size(150)
                    ->label('Media')
                    ->simpleLightbox(fn (PublicInstagramPost $record) => asset('storage/'.$record->media_path)),

It gives this error

Object of class Closure could not be converted to string

I should be able to dynamically load the lightbox

Package Version

0.0.5

PHP Version

8.2.14

Laravel Version

10.40.0

Which operating systems does with happen with?

Linux

Notes

No response

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.