xowiki::formfield::dict_to_spec (public)

 xowiki::formfield::dict_to_spec [ -aspair ] [ -name name ] dict

Defined in packages/xowiki/tcl/form-field-procs.tcl

Convert the provided dict into a form-field spec together with the form-field name. When "-aspair" is specified the spec is returned in the list format as used by "create_components". If "-name" is not specified, the name has to be provided via dict member "_name", otherwise an exception is triggered.

Switches:
-aspair (optional, boolean, defaults to "false")
-name (optional)
Parameters:
dict (required)

Testcases:
dict_to_xx
[ show source ]
Show another procedure: