addRowDefinition method

Panel addRowDefinition(
  1. num rowIndex,
  2. dynamic options
)

For Panel.Table|Table Panels: Sets the row RowColumnDefinition given by the index. If the row definition does not exist on the Panel, this will create it. If it already exists on the Panel, this will copy the properties of the given RowColumnDefinition options onto that definition.

This is a convenience method for #addRowColumnDefinition. Instead of writing:

.addRowColumnDefinition(new go.RowColumnDefinition({ row: 2, height: 60 }))

You can write:

.addRowDefinition(2, { height: 60 })

@since 2.3 @param {RowColumnDefinition} rowIndex the non-negative zero-based integer row index. @param {Partial

Implementation

_i3.Panel addRowDefinition(
  _i2.num rowIndex,
  _i2.dynamic options,
) =>
    _i4.callMethod(
      this,
      'addRowDefinition',
      [
        rowIndex,
        options,
      ],
    );