utyListviewColumn Class Reference
[Javascript Widgets (utywidgets.js)]

Javascript listiew column header widget. More...

Inheritance diagram for utyListviewColumn:
utyButtonBase

List of all members.

Public Member Functions

function utyListviewColumn (lvwId, id, onclick, sizable)
function listview ()
function sizable ()
function dispSort (order)
function sort (type)
function index ()
function toString ()
function click (element, event)

Public Attributes

const CAPTURE_MARGIN

Detailed Description

Javascript listiew column header widget.

See also:
uty_listview_column

Constructor & Destructor Documentation

function utyListviewColumn (   lvwId,
  id,
  onclick,
  sizable 
) [inline]

INTERNAL constructor


Member Function Documentation

function click (   element,
  event 
) [inline]

Prevent the normal click event handling if occurred near the columns bound and the column is sizable

See also:
CAPTURE_MARGIN

Reimplemented from utyButtonBase.

function dispSort (   order  )  [inline]

get/set the displayed sort image

Parameters:
order (UTY_SORT_*) the sort image to display. To hide any sort image pass -1.
Returns:
the displayed sort value (UTY_SORT_*)
Note:
to set the value pass (UTY_SORT_*) or -1 to hide the image. To leave the value unchanged (getter) don't pass any value
function index (  )  [inline]
Returns:
the 0 based column index (position) in the table
function listview (  )  [inline]
Returns:
the utyListview instance that owns this column header
function sizable (  )  [inline]
Returns:
the sizable property of this column (bool)
function sort (   type  )  [inline]

sort the html table by this column

Parameters:
type (string) 'text' | 'number' | 'date'
function toString (  )  [inline]
Returns:
"utyListviewColumn"

Reimplemented from utyButtonBase.


Member Data Documentation

how many pixels far from the column bound the mousdown event starts the resizing process


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Enumerations

Copyright © 2010 Attilio Pavone - www.utillyty.eu