MadelineProtoDocs/old_docs/API_docs_v44/constructors/pageBlockTable.md

42 lines
974 B
Markdown
Raw Permalink Normal View History

2020-10-01 18:05:42 +02:00
---
title: pageBlockTable
description: Table
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: pageBlockTable
[Back to constructors index](index.md)
Table
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|bordered|[Bool](../types/Bool.md) | Optional|Does the table have a visible border?|
|striped|[Bool](../types/Bool.md) | Optional|Is the table striped?|
|title|[RichText](../types/RichText.md) | Yes|Title|
|rows|Array of [PageTableRow](../types/PageTableRow.md) | Yes|Table rows|
### Type: [PageBlock](../types/PageBlock.md)
### Example:
```php
$pageBlockTable = ['_' => 'pageBlockTable', 'bordered' => Bool, 'striped' => Bool, 'title' => RichText, 'rows' => [PageTableRow, PageTableRow]];
```
Or, if you're into Lua:
```lua
pageBlockTable={_='pageBlockTable', bordered=Bool, striped=Bool, title=RichText, rows={PageTableRow}}
```