SugarCRM DisplayParams

Do you like this?

Summary:
When designing EditView, DetailView or SearchView; you might want to change the look and feel of your module. Using displayParams, you can easily change how the HTML elements are rendered such as the size of drop down boxes, text boxes and so on.


Content:

Examples:

$searchdefs ['your_module'] = array (
	'layout' => array (
		'basic_search' => array (

#--------------changing the display size of a drop down box----------------------

			'dropdown_element' => array (
				'name' => 'dropdown_element',
				'default' => true,
				'width' => '10%',
				'displayParams'=>array(size=>2),
			),
#--------------changing the display size of a text area----------------------

			'content' => array (
				'name' => 'content',
				'type' => 'text',
				'default' => false,
				'width' => '10%',
				'displayParams'=>array('rows'=>1,'cols'=>20)
			),

 
comments powered by Disqus