Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Elijah "Ellie" Mangason
Liferay 6.1.1 how to programmatically set the width of an expando field?
August 28, 2012 3:18 PM
Answer

Elijah "Ellie" Mangason

Rank: Junior Member

Posts: 67

Join Date: May 14, 2012

Recent Posts

I need to create expandos from a startup hook as described in this post. What's missing is how to set the width of the expando fields from the hook. Would anyone know how to accomplish this programmatically?
Ray Augé
RE: Liferay 6.1.1 how to programmatically set the width of an expando field
August 29, 2012 7:41 AM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1195

Join Date: February 7, 2005

Recent Posts

Do you mean the hints used for the input fields or the physical size constraint on the value stored in the DB?
Elijah "Ellie" Mangason
RE: Liferay 6.1.1 how to programmatically set the width of an expando field
August 29, 2012 9:59 AM
Answer

Elijah "Ellie" Mangason

Rank: Junior Member

Posts: 67

Join Date: May 14, 2012

Recent Posts

Thanks for asking! I'm simply trying to resize the custom field's text box. By default, it's really big. Through the UI it can be resized using the 'height' and 'width' parameters. How can I adjust the width of the custom fields textbox using code. I couldn't find a setWidth() method that looked like it would work in this case. Any ideas?