This is a add custom action buttons example. It provide functionality to add custom column using set column properties. In this example I add Actions custom column to display view and edit buttons.

	$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);
	

This is callback for Actions column.

	/**
	* Actions column
	* 
	* @param  \App\Libraries\Scaffolding\Model $record
	* @param  \App\Libraries\Scaffolding\ScaffoldingTable $Scaffolding
	* 
	* @return  void
	*/
    public function actionColumn($record, $Scaffolding)
    {
    	$url= $Scaffolding->getActionButtonUrls($record);
    	echo '
'; }
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