Enables the user to resize the columns of the target table by dragging the column header borders.
You can persist changes to the column size by binding the columnWidths attribute to a portlet-preferences-bean property, and binding the storePreferences attribute to the storePreferences()
method of a portlet-preferences-bean. In addition, manual processing is needed during the faces render phase to set the widths of the columns in the table to match the persisted values.
The columnWidths attribute is persisted as a comma-separated value string representation of a map, mapping column IDs to column widths. For example, the following string defines the width of colOne as 60%, the width of colTwo as 40%, and the width of colThree as 20px:
colOne=60%,colTwo=40%,colThree=20px
Info | Value |
---|---|
Component Type | com.webmethods.caf.faces.behavior.DragToResizeColumns |
Handler Class | com.webmethods.caf.faces.component.behavior.DragToResizeColumnsBehaviorHandler |
Renderer Type | com.webmethods.caf.faces.behavior.DragToResizeColumns |
Description | Allows user to resize the columns in a table by dragging the column header borders |
Palette Location | CAF Html/Control/Behaviors/Drag To Resize Columns |
Client-Side Model | CAF.DragToResizeColumnsBehavior.Model |
Name | Required | Type | Description |
---|---|---|---|
columnWidths | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| Column widths as id=width mapped csv (for persisting new column to widths mapping). |
for | false | javax.el.ValueExpression
(must evaluate to java.lang.String )
| ID of control to which to apply this behavior |
id | false | java.lang.String | Control identifier |
rendered | false | javax.el.ValueExpression
(must evaluate to boolean )
|
True to render control; false to ignore it
If not specified, the default value is "true". |
storePreferencesExpression | false | javax.el.MethodExpression
(signature must match void storePreferences() )
| Method to invoke to persist portlet preferences. |
Output generated by Vdldoc View Declaration Language Documentation Generator.