This is a custom form input view example. It provide functionality to modify form input in View action. In this example I modify title form input in View action wrapped with <p class="text-primary"></p>.

	$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);
	// Modify title form input in View action
	$Scaffolding->setFormInputView('title', array($this, 'getFormInputViewTitle'));
	$content= $Scaffolding->render();
	$parameters= array(
		'scaffolding'=>$content
	);
	return view('demo', $parameters);
	

This is callback for modify title form input in View action.

	/**
	* Get form input view title
	* 
	* @param  array $column
	* @param  \App\Libraries\Scaffolding\Model $Model
	* @param  \App\Libraries\Scaffolding\ScaffoldingTable $Scaffolding
	* 
	* @return  string
	*/
    public function getFormInputViewTitle($column, $Model, $Scaffolding)
    {
    	$columnName= $column['name'];
    	$value= $Model[$columnName];
    	echo '

' . $value . '

'; }
Title

Conditional Statements

Category
PHP-2
Description