[Html-widget] How to get the name of the name of the label.

Ted Carnahan ted at tedcarnahan.com
Fri May 19 16:01:15 CEST 2006


Carl Franks wrote:

>Hmm, this could probably be handled better, but for now, I can only think of:
>
>( $widget->get_elements(name=> $name) )[0]->label
>  
>
I find myself using this sort of construction quite often, and I don't 
often have elements with the same name.  Would a new method 
$widget->get_element(name =>...etc) be useful for eliminating the array 
cruft?

Ted




More information about the Html-widget mailing list