add_description() suggestion
- Single Page
Posted 15 September 2012 - 23:41 PM
$this->crud->add_description($column_name, $column_description);
[attachment=284:Untitled-1.jpg]
For now i use this like:
->display_as('post_tags','Column Title <small>column description</small>');
and style it.
I know that i can achieve this with callback function but it will be hard for us to do this for all fields. you know time is money huh
I'll be appreciated if you add this in new version.
Thanks in advance.
Posted 16 September 2012 - 09:09 AM
Example:
$crud->callback_field('fieldname', array($this, '_field_callback'));
function _field_callback($value = '', $primary_key = null, $field)
// add a description
$str = '<p>This is a description!</p>';
// add the original field generated by gcrud
$str.= $field;
return $str;
}
Posted 16 September 2012 - 09:48 AM
Posted 16 September 2012 - 09:55 AM
Posted 16 September 2012 - 12:49 PM