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()
No description available.

Structural methods

setDirection(direction)
Parameters
  • direction {string}: direction
No description available.

Static methods

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

Other methods

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

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.