Top
You are looking at an outdated 7.4.1 version of this document. Switch to the 7.14.3 version to see the up to date information.

class anychart.core.ui.table.Row Improve this Doc

Extends: anychart.core.ui.table.Base

Table row settings container.

Methods Overview

Miscellaneous
cellBorder()Getter for border settings object.
cellFill()Getter for current fill color override.
cellPadding()Getter for padding settings object.
getCell()Returns cell of current row by column index.
getRowNum()Returns row index.
height()Getter for row height settings.
maxHeight()Getter for row maximum height settings.
minHeight()Getter for row minimum height settings.

Methods Description

cellBorder

Getter for border settings object.

Returns:

anychart.core.ui.table.Border - Current border settings.
Setter for cell border settings. Learn more about stroke settings.

Params:

Name Type Default Description
value 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 anychart.graphics.vector.StrokeLineJoin
Line join style.
lineCap anychart.graphics.vector.StrokeLineCap
Line cap style.

Returns:

anychart.core.ui.table.Base - Self instance for method chaining.

Try it:

cellFill

Getter for current fill color override.

Returns:

anychart.graphics.vector.Fill - Current fill color.
Sets fill settings using an object or a string. Learn more about coloring.

Params:

Name Type Default Description
value anychart.graphics.vector.Fill
null
Color as an object or a string.

Returns:

anychart.core.ui.table.Base - Self instance for method chaining.
Fill color with opacity. Fill as a string or an object.

Params:

Name Type Description
color string Color as a string.
opacity number Color opacity.

Returns:

anychart.core.ui.table.Base - Self instance for method chaining.

Try it:

Linear gradient fill. Learn more about coloring.

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.Base - Self instance for method chaining.

Try it:

Radial gradient fill. Learn more about coloring.

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.Base - Self instance for method chaining.

Try it:

Params:

Name Type Description
imageSettings anychart.graphics.vector.Fill Object with settings.

Returns:

anychart.core.ui.table.Base - Self instance for method chaining.

Try it:

cellPadding

Getter for padding settings object.

Returns:

anychart.core.ui.table.Padding - Padding settings object.
Setter for current cell paddings in pixels using a single value.

Params:

Name Type Description
value null | Array.<(number|string)> | Object Value to set.

Returns:

anychart.core.ui.table.Base - Self instance for method chaining.
Examples for paddings
// all paddings 15px
cell.padding(15);
// all paddings 15px
cell.padding('15px');
// top and bottom 5px, right and left 15px
cell.padding(anychart.utils.space(5,15));

Try it:

Setter for current cell paddings in pixels using several numbers.

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.Base - Self instance for method chaining.
Examples for paddings
// 1) top and bottom 10px, left and right 15px
table.cellPadding(10, '15px');
// 2) top 10px, left and right 15px, bottom 5px
table.cellPadding(10, '15px', 5);
// 3) top 10px, right 15px, bottom 5px, left 12px
table.cellPadding(10, '15px', '5px', 12);

Try it:

getCell

Returns cell of current row by column index.

Params:

Name Type Description
col number Column index.

Try it:

getRowNum

Returns row index.

Returns:

number - Current row index.

Try it:

height

Getter for row height settings.

Returns:

string number null - Current column width.
Setter for row height settings.

Params:

Name Type Default Description
value string | number | null
null
Value to set.

Returns:

anychart.core.ui.table.Row - Self instance for method chaining.

Try it:

maxHeight

Getter for row maximum height settings.

Returns:

string number null - Current row maximum height.
Getter for row maximum height settings.

Params:

Name Type Default Description
value string | number | null
null
Value to set.

Returns:

anychart.core.ui.table.Row - Self instance for method chaining.

Try it:

minHeight

Getter for row minimum height settings.

Returns:

string number null - Current row minimum height.
Setter for row minimum height settings.

Params:

Name Type Default Description
value string | number | null
null
Value to set.

Returns:

anychart.core.ui.table.Row - Self instance for method chaining.

Try it: