Home > @uniformdev/canvas > CategoryClient

CategoryClient class

Signature:

Extends: ApiClient

Constructors

<table><thead><tr><th>

Constructor

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

(constructor)(options)

</td><td>

</td><td>

Constructs a new instance of the CategoryClient class

</td></tr> </tbody></table>

Methods

<table><thead><tr><th>

Method

</th><th>

Modifiers

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

getCategories(options)

</td><td>

</td><td>

Fetches all categories created in given project

</td></tr> <tr><td>

removeCategory(options)

</td><td>

</td><td>

Deletes a category

</td></tr> <tr><td>

upsertCategories(categories)

</td><td>

</td><td>

Updates or creates a category, also used to re-order them

</td></tr> </tbody></table>