Datamanager 2 simple text widget

As with all subclasses, the actual initialization is done in the initialize() function, not in the constructor, to allow for error handling.

This widget supports all types which have a simple, plain text representation accessible though their value member.

Available configuration options: At the moment, none.

package midcom.helper.datamanager2


_on_initialize ()

The initialization event handler post-processes the maxlength setting.


booleanIndicating Success

add_elements_to_form ($attributes)

Adds a simple single-line text form element at this time.



get_default ()

sync_type_with_widget ($results)



validate_number ($fields)

QF Validation callback used for number types.

It checks the number boundaries accordingly.