Class CellWrapper
Wraps cells to fit a given screen width with a given number of columns.
You can add data cells with Webmozart\Console\UI\Component\CellWrapper::addCell()
. Call Webmozart\Console\UI\Component\CellWrapper::fit()
to fit
the cells into a given maximum width and number of columns.
You can access the rows with the wrapped cells with Webmozart\Console\UI\Component\CellWrapper::getWrappedRows()
.
Namespace: Webmozart\Console\UI\Component
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at UI/Component/CellWrapper.php
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at UI/Component/CellWrapper.php
public
|
|
public
|
|
public
|
|
public
string[]
|
|
public
string[][]
|
|
public
int[]
|
|
public
integer
|
|
public
integer
|
#
getEstimatedNbColumns( integer $maxTotalWidth )
Returns an estimated number of columns for the given maximum width. |
public
integer
|
|
public
integer
|
|
public
boolean
|
|
public
boolean
|
|
public
|
#
fit( integer $maxTotalWidth, integer $nbColumns,
Fits the added cells into the given maximum total width with the given number of columns. |