# Installation

The Handsontable for WireBootstrap library is located in `wire-handsontable.js`.  This and other other related files can be installed from the NPM package registry at`@wirebootstrap/wire-handsontable`.

```javascript
npm install @wirebootstrap/wire-handsontable
```

{% hint style="info" %}
**Note**: Handsontable for WireBootstrap does not include a license for Handsontable.  A license for Handsontable may need to be purchased separately depending on your usage.  Visit, [Handsontable pricing](https://handsontable.com/pricing) for more details.
{% endhint %}

Handsontable for WireBootstrap will load the Hansontable JavaScript library and style sheet from the following locations if not found on the page.

{% embed url="<https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.js>" %}

{% embed url="<https://cdn.jsdelivr.net/npm/handsontable/dist/handsontable.full.min.css>" %}

## Class

Handsontable for WireBootstrap extends the [wire.ui.component](https://docs.wirebootstrap.com/wirebootstrap/reference/wire.ui/wire.ui.component) class.  As such, it inherits all the base functionality of that class.

To create a new instance of the Handsontable for WireBootstrap component, use the `wire.handsontable` class.

```javascript
const table = new wire.handsontable();
```

## Render

Render the component using an HTML `div` element.

{% tabs %}
{% tab title="JavaScript" %}

```html
<div id="table"></div>
```

```javascript
new wire.handsontable().render("#table");
```

{% endtab %}

{% tab title="React" %}

```jsx
<WireComponent component="wire.handsontable">
    <div></div>
</WireComponent>
```

{% endtab %}

{% tab title="Angular" %}

```javascript
<div wire-component="wire.handsontable"></div>
```

{% endtab %}
{% endtabs %}

## Sample Project

The NPM package includes a sample project that demonstrates the features of Handsontable for WireBootstrap.

![Handsontable for WireBootstrap Sample Application](/files/qzCu0x9NUtp1qBPSKWVV)

After installing, open the project in any web project editor. Next, open a terminal window and run the `npm first` script when running the project for the first time.  This will install the `npm` packages required to run the project and then open the default page in a new browser window.

```
npm run first
```

Use `npm start` to run the project later now that the packages are installed.

```
npm run start
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wirebootstrap.com/handsontable/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
