This is a set columns properties example. It provide functionality to define column properties those are name, width, label and callback. In this example I define width for columns to display according to the width in List View.

    	$Scaffolding= new Scaffolding("categories");
        // Set columns properties
        $parameters= array(
	        array(
	        	'name'=>'no',
	        	'width'=>'1%',
	        ),
	        array(
	        	'name'=>'name',
	        	'width'=>'89%',
	        ),
	        // Add Actions custom column
	        array(
	        	'name'=>'custom_action',
	        	'label'=>'Actions',
	        	'width'=>'10%',
	        	'callback'=>array($this, 'actionColumn'),
	        ),
        );
        $Scaffolding->setColumnProperties($parameters);
    	$content= $Scaffolding->render();
    	$parameters= array(
	    	'scaffolding'=>$content
    	);
    	return view('demo', $parameters);
	
No
Name
Actions
1 Teste
2 Test111
3 test
4 sasasdsadaaa
5 Sarel
6 sadasd
7 rfvddwfw
8 raja
9 qqq
10 Prova
Showing 1 to 10 of 70 entries