Reference documentation and code samples for the Google Apps Chat V1 Client class Column.
A column.
Google Workspace Add-ons and Chat apps: Columns for Google Workspace Add-ons are in Developer Preview.
Generated from protobuf message google.apps.card.v1.Columns.Column
Namespace
Google \ Apps \ Card \ V1 \ ColumnsMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ horizontal_size_style |
int
Specifies how a column fills the width of the card. |
↳ horizontal_alignment |
int
Specifies whether widgets align to the left, right, or center of a column. |
↳ vertical_alignment |
int
Specifies whether widgets align to the top, bottom, or center of a column. |
↳ widgets |
array<Column\Widgets>
An array of widgets included in a column. Widgets appear in the order that they are specified. |
getHorizontalSizeStyle
Specifies how a column fills the width of the card.
Returns | |
---|---|
Type | Description |
int |
setHorizontalSizeStyle
Specifies how a column fills the width of the card.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getHorizontalAlignment
Specifies whether widgets align to the left, right, or center of a column.
Returns | |
---|---|
Type | Description |
int |
setHorizontalAlignment
Specifies whether widgets align to the left, right, or center of a column.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getVerticalAlignment
Specifies whether widgets align to the top, bottom, or center of a column.
Returns | |
---|---|
Type | Description |
int |
setVerticalAlignment
Specifies whether widgets align to the top, bottom, or center of a column.
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |
getWidgets
An array of widgets included in a column. Widgets appear in the order that they are specified.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setWidgets
An array of widgets included in a column. Widgets appear in the order that they are specified.
Parameter | |
---|---|
Name | Description |
var |
array<Column\Widgets>
|
Returns | |
---|---|
Type | Description |
$this |