Datamanager 2 sorting widget.

It can only be bound to a select type (or subclass thereof), and inherits the configuration from there as far as possible.

Available configuration options:

  • int height: The height of the select box, applies only for multiselect enabled boxes, the value is ignored in all other cases. Defaults to 6.
  • string othertext: The text that is used to separate the main from the other form element. They are usually displayed in the same line. The value is passed through the standard schema localization chain.
package midcom.helper.datamanager2

 Methods

_on_initialize ()

The initialization event handler post-processes the maxlength setting.

Returns

booleanIndicating Success

add_elements_to_form ($attributes)

Adds a (multi)select widget to the form, depending on the base type config.

Parameters

$attributes

sync_type_with_widget ($results)

Synchronize the results with the type

Parameters

$results

_create_select_element ()

Create a sortable list

_render_items ($array)

Parameters

$array

 Properties

 

boolean $select_all

Select automatically every object.

This is for using the widget only to sort, not to select what has been sorted.

 

Array $_elements

Sortable elements