YUI recommends YUI 3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

Yahoo! UI Library

DataTable Widget  2.3.1

Yahoo! UI Library > datatable > YAHOO.util.ColumnResizer

Show Private Show Protected

Class YAHOO.util.ColumnResizer - extends YAHOO.util.DragDrop

ColumnResizer subclasses DragDrop to support resizeable Columns.

Constructor

YAHOO.util.ColumnResizer ( oDataTable , oColumn , elThead , sHandleElId , sGroup , oConfig )
Parameters:
oDataTable <YAHOO.widget.DataTable> DataTable instance.
oColumn <YAHOO.widget.Column> Column instance.
elThead <HTMLElement> TH element reference.
sHandleElId <String> DOM ID of the handle element that causes the resize.
sGroup <String> Group name of related DragDrop items.
oConfig <Object> (Optional) Object literal of config values.

Methods

onDrag

void onDrag ( e )
Handles drag events on the Column resizer.
Parameters:
e <string> The drag event
Returns: void

onMouseDown

void onMouseDown ( e )
Handles mousedown events on the Column resizer.
Parameters:
e <string> The mousedown event
Returns: void

onMouseUp

void onMouseUp ( e )
Handles mouseup events on the Column resizer.
Parameters:
e <string> The mouseup event
Returns: void


Copyright © 2007 Yahoo! Inc. All rights reserved.