This is a custom form columns example. It provide functionality to modify form columns. In this example I modify description from textarea to input text.

	$categoryList= $this->getCategoryList();
	$Scaffolding= new Scaffolding("posts");
	$Scaffolding->join('categories', 'categories.id', '=', 'posts.category', 'INNER');
	$Scaffolding->setFormInputFiller("category", $categoryList);
	// Set columns properties
	$parameters= array(
	    array(
	    	'name'=>'no',
	    	'width'=>'1%',
	    ),
	    array(
	    	'name'=>'categories.name',
	    	'label'=>'Category',
	    	'width'=>'30%',
	    ),
	    array(
	    	'name'=>'title',
	    	'width'=>'49%',
	    ),
	    array(
	    	'name'=>'actions',
	    	'width'=>'20%',
	    ),
	);
	$Scaffolding->setColumnProperties($parameters);
	$Scaffolding->addHooks("modifyColumnsProperties", array($this, "modifyFormColumns"));
	$content= $Scaffolding->render();
	$parameters= array(
		'scaffolding'=>$content
	);
	return view('demo', $parameters);
	

This is callback for modify form columns.

    /**
	* Modify form columns
	* 
	* @param  array $columns
	* 
	* @return  array
	*/
    public function modifyFormColumns($columns)
    {
    	$columns['description']['type']= 'text';
    	return $columns;
    }
	
Cancel