Giter Site home page Giter Site logo

grid-lightbox's People

Contributors

jxlwqq avatar mhanoglu avatar z-song 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  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  avatar

grid-lightbox's Issues

Replace storage with public

I have field with filename of picture.
Pictures located in /public/img/news directory.
But when I add ->lightbox(); in the end of line then result path is http://localhost/storage//img/news/new-shower-hinges.jpg

        $grid->column('image', 'Image')->display(function ($name) {
            return "/img/news/$name";
            })->lightbox();

Is it possible to fix that without changing code of vendor LightboxDisplayer?

怎么在display里面使用?

 $grid->column('card', '备注')->display(function($card){
if($card->type==1){
return "文字";
}else{
return $card->lightbox(...);
}
});

display里面判断使用哪种效果

使用报错

本地可以使用,服务器会报错,错误内容 :Method Illuminate\Support\Collection::lightbox does not exist.

How to apply lightbox for $show->field

I could apply lightbox to grid element like that and it works

        $grid->column('image', 'Picture')->display(function ($name) {
            return "/img/news/$name";
            })->lightbox();

But I cannot understand how to apply that to show field. Same principle doesn't work.

        $show->field('image', __('Image'))->display(function ($name) {
            return "/img/news/$name";
            })->image()->lightbox();

composer require laravel-admin-ext/grid-lightbox

[InvalidArgumentException]
Could not find package laravel-admin-ext/grid-lightbox at any version for
your minimum-stability (stable). Check the package spelling or your mini
mum-stability

google is not help this.

经过简单的测试发现貌似和 image()有冲突

$grid->column( 'wx_avatar_url' , __( '微信头像' ) )->image( config( 'myconfig.config.API_URL' ).'uploads' ,50,50)->lightbox();

这样的情况下,图片不显示了,而且增加了 HTML代码在页面上。

Error when image URL is blank

Thank you

When using with grid, if there is a blank line of URL, an error occurs.

InvalidArgumentException In Validator.php line 65:

if (url () -> isValidUrl ($ this -> value)) {

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.