class anychart.core.ui.table.Column Improve this Doc
Extends: anychart.core.ui.table.Base
Table column settings container.
Methods Overview
Advanced Text Settings | |
fontVariant() | Text font variant settings. |
letterSpacing() | Text letter spacing settings. |
textDirection() | Text direction settings. |
textIndent() | Text line height settings. |
textOverflow() | Text overflow settings. |
useHtml() | Text useHtml settings. |
wordBreak() | Word break mode. |
wordWrap() | Word-wrap mode. |
Base Text Settings | |
fontColor() | Text font color settings. |
fontDecoration() | Text font decoration settings. |
fontFamily() | Text font family settings. |
fontOpacity() | Text font opacity settings. |
fontSize() | Text font size settings. |
fontStyle() | Text font style settings. |
fontWeight() | Text font weight settings. |
hAlign() | Text horizontal align settings. |
lineHeight() | Text line height settings. |
vAlign() | Text vertical align settings. |
Coloring | |
border() | Border settings. |
cellBorder() | Cell border settings. |
cellFill() | Cell fill settings. |
Events | |
disablePointerEvents() | Disable pointer events settings. |
Interactivity | |
selectable() | Text selectable option. |
Size and Position | |
cellPadding() | Cell padding settings. |
maxWidth() | Column maximum width settings. |
minWidth() | Column minimum width settings. |
width() | Column width settings. |
Miscellaneous | |
getCell() | Returns cell of column by row index. |
getColNum() | Gets column index. |
Methods Description
border
Returns:
anychart.core.ui.table.Border - Border settings.Note: lineJoin settings not working here.
Params:
Name | Type | Default | Description |
---|---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null | Stroke settings. | |
thickness | number | 1 | Line thickness. |
dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
lineJoin | string | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
lineCap | string | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
cellBorder
Returns:
anychart.core.ui.table.Border - Border settings.Note: lineJoin settings not working here.
Params:
Name | Type | Default | Description |
---|---|---|---|
color | anychart.graphics.vector.Stroke | anychart.graphics.vector.ColoredFill | string | function | null | Stroke settings. | |
thickness | number | 1 | Line thickness. |
dashpattern | string | Controls the pattern of dashes and gaps used to stroke paths. | |
lineJoin | string | anychart.graphics.vector.StrokeLineJoin | Line join style. | |
lineCap | string | anychart.graphics.vector.StrokeLineCap | Line cap style. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
cellFill
Returns:
anychart.graphics.vector.Fill - Fill color.Params:
Name | Type | Default | Description |
---|---|---|---|
color | anychart.graphics.vector.Fill | Array.<(anychart.graphics.vector.GradientKey|string)> | undefined | Color as an object, an array or a string. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Params:
Name | Type | Description |
---|---|---|
color | string | Color as a string. |
opacity | number | Color opacity. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Gradient keys. |
angle | number | Gradient angle. |
mode | boolean | anychart.graphics.vector.Rect | Object | Gradient mode. |
opacity | number | Gradient opacity. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
keys | Array.<(anychart.graphics.vector.GradientKey|string)> | Color-stop gradient keys. |
cx | number | X ratio of center radial gradient. |
cy | number | Y ratio of center radial gradient. |
mode | anychart.graphics.math.Rect | If defined then userSpaceOnUse mode, else objectBoundingBox. |
opacity | number | Opacity of the gradient. |
fx | number | X ratio of focal point. |
fy | number | Y ratio of focal point. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
Params:
Name | Type | Description |
---|---|---|
imageSettings | anychart.graphics.vector.Fill | Object with settings. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
cellPadding
Returns:
anychart.core.ui.table.Padding - Padding settings object.Try it:
Params:
Name | Type | Description |
---|---|---|
padding | null | Array.<(number|string)> | Object | Cell padding to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.// all paddings 15px column.cellPadding(15); // all paddings 15px column.cellPadding('15px'); // top and bottom 5px ,right and left 15px column.cellPadding(anychart.utils.padding(5,15));
Try it:
Params:
Name | Type | Description |
---|---|---|
value1 | string | number | Top or top-bottom space. |
value2 | string | number | Right or right-left space. |
value3 | string | number | Bottom space. |
value4 | string | number | Left space. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.// 1) top and bottom 10px, left and right 15px column.cellPadding(10, '15px'); // 2) top 10px, left and right 15px, bottom 5px column.cellPadding(10, '15px', 5); // 3) top 10px, right 15px, bottom 5px, left 12px column.cellPadding(10, '15px', '5px', 12);
Try it:
disablePointerEvents
Returns:
boolean - If pointer events are disabled.Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | false | Value to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.fontColor
Returns:
string - Font color.Params:
Name | Type | Description |
---|---|---|
color | string | Font color to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
fontDecoration
Returns:
anychart.graphics.vector.Text.Decoration | string - Font decoration.Params:
Name | Type | Default | Description |
---|---|---|---|
type | anychart.graphics.vector.Text.Decoration | string | anychart.graphics.vector.Text.Decoration#NONE | Font decoration to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
fontFamily
Returns:
string - Font family.Params:
Name | Type | Description |
---|---|---|
family | string | Font family to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
fontOpacity
Returns:
number - Font opacity.Params:
Name | Type | Default | Description |
---|---|---|---|
opacity | number | 1 | Font opacity to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
fontSize
Returns:
string | number - Font size.Params:
Name | Type | Description |
---|---|---|
size | string | number | Font size to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
fontStyle
Returns:
anychart.graphics.vector.Text.FontStyle | string - Font style.Params:
Name | Type | Default | Description |
---|---|---|---|
style | anychart.graphics.vector.Text.FontStyle | string | anychart.graphics.vector.Text.FontStyle#NORMAL | Font style to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
fontVariant
Returns:
anychart.graphics.vector.Text.FontVariant | string - Font variant.Params:
Name | Type | Default | Description |
---|---|---|---|
type | anychart.graphics.vector.Text.FontVariant | string | anychart.graphics.vector.Text.FontVariant#NORMAL | Font variant to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
fontWeight
Returns:
string | number - Font weight.Params:
Name | Type | Description |
---|---|---|
weight | string | number | Value to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
getCell
Params:
Name | Type | Description |
---|---|---|
row | number | Row index. |
Returns:
anychart.core.ui.table.Cell - Cell instance.Try it:
getColNum
hAlign
Returns:
anychart.graphics.vector.Text.HAlign | string - Text horizontal align.Params:
Name | Type | Default | Description |
---|---|---|---|
align | anychart.graphics.vector.Text.HAlign | string | anychart.graphics.vector.Text.HAlign#START | Horizontal align to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
letterSpacing
Returns:
string | number - The letter spacing.Params:
Name | Type | Description |
---|---|---|
spacing | string | number | Letter spacing to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
lineHeight
Returns:
string | number - Text line height.Params:
Name | Type | Description |
---|---|---|
height | string | number | Line height to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
maxWidth
Returns:
string | number | null - Column maximum width.Params:
Name | Type | Default | Description |
---|---|---|---|
width | string | number | null | Maximum width to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
minWidth
Returns:
string | number | null - Column minimum width.Params:
Name | Type | Default | Description |
---|---|---|---|
width | string | number | null | null | Minimum width to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
selectable
Returns:
boolean - Text selectable option.Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | false | Value to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
textDirection
Returns:
anychart.graphics.vector.Text.Direction | string - Text direction.Params:
Name | Type | Default | Description |
---|---|---|---|
type | anychart.graphics.vector.Text.Direction | string | anychart.graphics.vector.Text.Direction#LTR | Text direction to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
textIndent
Returns:
number - Text indent.Params:
Name | Type | Description |
---|---|---|
indent | number | Text indent to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
textOverflow
Returns:
anychart.graphics.vector.Text.TextOverflow | string - Text overflow settings.Params:
Name | Type | Default | Description |
---|---|---|---|
value | anychart.graphics.vector.Text.TextOverflow | string | anychart.graphics.vector.Text.TextOverflow#CLIP | Value to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
useHtml
Returns:
boolean - Value of useHTML flag.Params:
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | false | Value to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
vAlign
Returns:
anychart.graphics.vector.Text.VAlign | string - Text vertical align.Params:
Name | Type | Default | Description |
---|---|---|---|
align | anychart.graphics.vector.Text.VAlign | string | anychart.graphics.vector.Text.VAlign#TOP | Vertical align to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
width
Returns:
string | number | null - Column width.Params:
Name | Type | Default | Description |
---|---|---|---|
width | string | number | null | Column width to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
wordBreak
Returns:
anychart.enums.WordBreak | string - Word-break mode.var wordBreak = cell.wordBreak();
Params:
Name | Type | Default | Description |
---|---|---|---|
mode | anychart.enums.WordBreak | string | 'normal' | Value to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it:
wordWrap
Returns:
anychart.enums.WordWrap | string - Word-wrap mode.var wordWrap = cell.wordWrap();
Params:
Name | Type | Default | Description |
---|---|---|---|
mode | anychart.enums.WordWrap | string | 'break-word' | Value to set. |
Returns:
anychart.core.ui.table.Column - Self instance for method chaining.Try it: