TableColumnOptions

class TableColumnOptions
getIgnoreList()
property aggregate

how to group by in an aggergate

Type: bool
Default: false
property groupBy

Should we group by this column?

Type: bool
Default: false
property aggregateFunction

the aggregate type

Type: string
Default: “SUM”
property primaryColumn

is this the primary column? y/n

Type: bool
Default: false
property displayAsRange

Whether to display this column as a ranged value

Type: string
Default: “(unset)”
property timeUnit

If the value is being displayed as a time-based range, What kind of ranging should be used

Type: string
Default: “yearly”
property sort

Sort the column. Possible values - ASC and DESC

Type: string
Default: “”
property numberPrefix

A string that is prefixed before every number

Type: string
Default: “”
property textColor

The color of the text. This can either be a web-safe color (red, green, etc) or can be a hexadecimal string.

Type: string
Default: “(unset)”
property boldText

Show the text as bold.

The text in the column will be bold when this is set to true

Type: boolean
Default: false
property italicText

Show the text as italics

The text in the column will be italics when this is set to true

Type: boolean
Default: false
property textAlign

Set the text alignment for the column

Valid options are: * left * center * right

Type: boolean
Default: “(unset)”
property width

Width of the column in Pixels

Type: int
Default: 130
property name

The name of the column

Type: string
Default: “”
property timeFormatString

The time format string

Options: “d” - short date - “11/6/2010”

TODO: Add the remaining options

Type: string
Default: “d”
property type

The type of data

Type: string
Default: “auto”
property numberSuffix

Using this attribute, you could add a suffix to all the numbers. For example, to represent all dollars figures, you could specify this attribute to ‘%’ to show like 33%, 53%.

Type: string
Default: “(unset)”
property formatNumber

If this is set to false, the number will not be formatted. It will be shown without commas or decimals.

Type: boolean
Default: true
property decimals

Number of decimal places all items in the chart will be rounded to

Type: int
Default: “(unset)”

Start building interactive, mobile-friendly Dashboards in PHP. See DemosDownload