<commit_before>---
layout: docs
title: Table Sticky Header
description: Table Sticky Header extension of Bootstrap Table.
group: extensions
toc: true
---

This is an extension which provides a sticky header for the table when scrolling.

## Usage

{% highlight html %}
<script src="extensions/sticky-header/bootstrap-table-sticky-header.js"></script>
{% endhighlight %}

## Options

### stickyHeader

- **type:** `Boolean`

- **Detail:**

   Set true to use sticky header.

- **Default:** `false`

### stickyHeaderOffsetY

- **type:** `Number`

- **Detail:**

   Set the Y offset from the top of the window to pin the sticky header. If there is a fixed navigation bar with a height of 60px, this value would be `60`.

- **Default:** `0`
<commit_msg>Add example link<commit_after>---
layout: docs
title: Table Sticky Header
description: Table Sticky Header extension of Bootstrap Table.
group: extensions
toc: true
---

This is an extension which provides a sticky header for the table when scrolling.

## Usage

{% highlight html %}
<script src="extensions/sticky-header/bootstrap-table-sticky-header.js"></script>
{% endhighlight %}

## Example

[Sticky Header](https://examples.bootstrap-table.com/#extensions/sticky-header.html)

## Options

### stickyHeader

- **type:** `Boolean`

- **Detail:**

   Set true to use sticky header.

- **Default:** `false`

### stickyHeaderOffsetY

- **type:** `Number`

- **Detail:**

   Set the Y offset from the top of the window to pin the sticky header. If there is a fixed navigation bar with a height of 60px, this value would be `60`.

- **Default:** `0`

{'fraction_non_alphanumeric': 0.1344590368980613, 'fraction_numerical': 0.006253908692933083, 'mean_word_length': 4.031446540880503, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7134273', 'n_tokens_mistral': 498, 'n_tokens_neox': 456, 'n_words': 185}