---
name: "HTMLDocument.addTableColumns"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTMLDocument.addTableColumns"
---

# HTMLDocument.addTableColumns(3kaya)

Add a new table column

## NAME

HTMLDocument::addTableColumns - Add a new table column

## SYNOPSIS

**Void addTableColumns(** *ElementTree table, Int num=1* **)**

## ARGUMENTS

**table** The table

**num** Optionally, the number of columns to add. If omitted, a single column is added.

## DESCRIPTION

Add a new column to the table. The table must have at least one section with at least one row for this to work - a **HTMLDocument.RequiresElement (3kaya)** Exception will be thrown otherwise. Unlike most of the table functions, this function does not return the new elements created since they will be in different rows.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**HTMLDocument.addTable (3kaya)**

**HTMLDocument.addTableRow (3kaya)**

**HTMLDocument.getTableCell (3kaya)**

**HTMLDocument.initialiseTable (3kaya)**

**HTMLDocument.numTableColumns (3kaya)**
