Class: PushButtonTableCell

qui.tables.commoncells.PushButtonTableCell(caption, onClickopt, caption, styleopt, backgroundColoropt, backgroundActiveColoropt, foregroundColoropt, iconopt, …args)

A table cell with a push button.

Constructor

new PushButtonTableCell(caption, onClickopt, caption, styleopt, backgroundColoropt, backgroundActiveColoropt, foregroundColoropt, iconopt, …args)

Parameters:
Name Type Attributes Description
caption String

the button caption

onClick function <optional>

function to be executed when the button is pushed (see qui.tables.commoncells.PushButtonTableCell#onClick)

caption String

button caption

style String <optional>

button style:

  • "foreground"
  • "interactive" (default)
  • "highlight"
  • "danger",
  • "colored"
backgroundColor String <optional>

custom background color (ignored unless style is "colored")

backgroundActiveColor String <optional>

custom background active color (ignored unless style is "colored")

foregroundColor String <optional>

custom foreground color (ignored unless style is "colored")

icon qui.icons.Icon <optional>

an optional button icon

args * <repeatable>

parent class parameters

Source:

Extends

Methods

getRow() → {qui.tables.TableRow}

Return the owning row.

Overrides:
Source:
Returns:
Type
qui.tables.TableRow

getValue() → {*}

Return the current value.

Overrides:
Source:
Returns:
Type
*

hide()

Hide the cell.

Overrides:
Source:

isSelected()

Tell if cell is selected or not.

Overrides:
Source:

(abstract) makeContent() → {jQuery}

Implement this method to create the actual table cell content.

Overrides:
Source:
Returns:
Type
jQuery

setBackgroundActiveColor(color)

Update background active color.

Parameters:
Name Type Description
color String
Source:

setBackgroundColor(color)

Update background color.

Parameters:
Name Type Description
color String
Source:

setCaption(caption)

Update button caption.

Parameters:
Name Type Description
caption String
Source:

setEnabled(enabled)

Set button enabled state.

Parameters:
Name Type Description
enabled Boolean
Source:

setForegroundColor(color)

Update foreground color.

Parameters:
Name Type Description
color String
Source:

setIcon(iconnullable)

Update button icon.

Parameters:
Name Type Attributes Description
icon qui.icons.Icon <nullable>
Source:

setRow(row)

Set the owning row.

Parameters:
Name Type Description
row qui.tables.TableRow
Overrides:
Source:

setSelected(selected)

Select or deselect cell.

Parameters:
Name Type Description
selected Boolean
Overrides:
Source:

setSelectMode(selectMode)

Set select mode. This is internally called by owning qui.tables.TableRow.

Parameters:
Name Type Description
selectMode String

one of:

Overrides:
Source:

setStyle(style)

Update button style.

Parameters:
Name Type Description
style String
Source:

setValue(value)

Set the current value.

Parameters:
Name Type Description
value *
Overrides:
Source:

show()

Show the cell.

Overrides:
Source:

(abstract) showValue(value)

Implement this method to display the value in the cell content.

Parameters:
Name Type Description
value *
Overrides:
Source: