=========
init_tabs
=========

.. js:function:: init_tabs(container, tabs_position)

**domain**: client 

**language**: javascript

**class** :doc:`Task </refs/client/task_api>`

Description
===========

The ``init_tabs`` method initializes tabs for a container. 

The ``container`` is JQuery object for a container element.

The ``tabs_position``
parameter specifies where tabs, created by the 
:doc:`add_tab <m_add_tab>`
method will be positioned. It is string that can be one of the following values:

* tabs-below
* tabs-left
* tabs-right

If this parameter is omitted tabs will be positioned at the top of the container.

After this method is called you can use the
:doc:`add_tab <m_add_tab>`
method to create tabs.

See also
========

:doc:`add_tab <m_add_tab>`

:doc:`close_tab <m_close_tab>`