Header

The Header component is a basic class for the datatable component.

Import
the javascript logo
import { Header } from "@schukai/monster/source/components/datatable/datatable/header.mjs";
Source
the git logo
Package
the npm logo
Since
1.0.0

HTML Structure

<monster-header></monster-header>

JavaScript Initialization

const element = document.createElement('monster-header');
document.body.appendChild(element);

Exported

Header, DIRECTION_ASC, DIRECTION_DESC, DIRECTION_NONE, createOrderStatement

Derived from

Base

Options

The Options listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class. Therefore, it inherits Options from these parent classes. If you cannot find a specific Options in this list, we recommend consulting the documentation of the Base.

Option
Type
Default
Description
-/-

  • since
  • deprecated

Properties and Attributes

The Properties and Attributes listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class and ultimately from HTMLElement. Therefore, it inherits Properties and Attributes from these parent classes. If you cannot find a specific Properties and Attributes in this list, we recommend consulting the documentation of the Base.

  • data-monster-options: Sets the configuration options for the collapse component when used as an HTML attribute.
  • data-monster-option-[name]: Sets the value of the configuration option [name] for the collapse component when used as an HTML attribute.

Methods

The methods listed in this section are defined directly within the class. This class is derived from several parent classes, including the CustomElement class and ultimately from HTMLElement. Therefore, it inherits methods from these parent classes. If you cannot find a specific method in this list, we recommend consulting the documentation of the Base.

Constructor

constructor()
The Header component is a basic class for the datatable component.

Structural methods

setDirection(direction)
Parameters
  • direction {string}: direction

Static methods

[instanceSymbol]()
Returns
  • {symbol}
This method is called by the instanceof operator.

Other methods

changeDirection()
classes(classes)
Parameters
  • classes {string}: classes
classes()
Returns
  • {string}
direction(direction)
Parameters
  • direction {string}: direction
direction()
Returns
  • {string}
field(field)
Parameters
  • field {string}: field
field()
Returns
  • {string}
grid()
Returns
  • {string}
html()
Returns
  • {string}
index(index)
Parameters
  • index {number}: index
index()
Returns
  • {string}
initialWidth(initialWidth)
Parameters
  • initialWidth {number}: index
initialWidth()
Returns
  • {string}
internalDefaults()
Returns
  • {object}
label(label)
Parameters
  • label {string}: label
label()
Returns
  • {string}
labelKey(labelKey)
Parameters
  • labelKey {string}: direction
labelKey()
Returns
  • {string}
mode()
Returns
  • {string}
order()
Returns
  • {string}
orderTemplate(orderTemplate)
Parameters
  • orderTemplate {number}: index
orderTemplate()
Returns
  • {string}
resizable(resizable)
Parameters
  • resizable {number}: index
resizable()
Returns
  • {string}

Events

This component does not fire any public events. It may fire events that are inherited from its parent classes.

The current width of the area is too small to display the content correctly.