rapyd-laravel icon indicating copy to clipboard operation
rapyd-laravel copied to clipboard

Remove Add link from DataGrid

Open JayGajjar opened this issue 8 years ago • 3 comments

Would like to remove add link from datagrid as i just wanted to display the data on grid. Can anyone show me how to achieve this ?

JayGajjar avatar Jan 16 '17 07:01 JayGajjar

i have a rapid solution

add in zofe\rapyd\views\toolbar.blade.php file at botton

find in line 40

@else

@endif

and replace with

@else <div class="btn-toolbar" role="toolbar"> <div class="pull-left">&nbsp</div> <divclass="pull-right">&nbsp` @endif

simply , but effective

luiscastror9 avatar Aug 15 '18 13:08 luiscastror9

as you can see from source, using "custom" view should be simple: https://github.com/zofe/rapyd-laravel/blob/master/src/DataGrid/DataGrid.php#L43

you must use method "build" passing a custom view path: $grid->build("my.custom.datagrid_path");

@luiscastror9 it's not correct to edit "vendor" files, you should copy the view from https://github.com/zofe/rapyd-laravel/blob/master/views/datagrid.blade.php in your applications view path then edit what you need

zofe avatar Aug 16 '18 07:08 zofe

no problem.. thanks

luiscastror9 avatar Aug 28 '18 18:08 luiscastror9