ion-list-header
リストヘッダーは、リストの内容を記述するために使用されるブロック要素です。アイテムディバイダー](./item-divider)とは異なり、リストヘッダーはアイテムのリストの先頭で一度だけ使用する必要があります。
基本的な使い方
リストヘッダーのボタン
リストのヘッダーに button を配置すると、リストの一部を表示し、ボタンで全リストにリダイレクトするのに便利です。
List Headerの下線
リストヘッダーは、デフォルトでは下部のボーダーが表示されません。 lines プロパティを "full" または "inset" に変更すると、それぞれ全幅のボーダーまたは左paddingを伴う挿入ボーダーが表示されます。
テーマ
Colors
CSSカスタムプロパティ
プロパティ
color
Description アプリケーションのカラーパレットから使用する色を指定します。デフォルトのオプションは以下の通りです。
"primary", "secondary", "tertiary", "success", "warning", "danger", "light", "medium", と "dark" です.色に関する詳しい情報は theming を参照してください。 Attribute
color Type
"danger" | "dark" | "light" | "medium" | "primary" | "secondary" | "success" | "tertiary" | "warning" | string | undefined Default
undefinedlines
Description リストヘッダーの下辺のボーダーをどのように表示するか。
Attribute
lines Type
"full" | "inset" | "none" | undefined Default
undefinedmode
Description modeは、どのプラットフォームのスタイルを使用するかを決定します。
This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attribute
mode Type
"ios" | "md" Default
undefinedイベント
No events available for this component.
メソッド
No public methods available for this component.
CSS Shadow Parts
No CSS shadow parts available for this component.
CSSカスタムプロパティ
- iOS
- MD
| Name | Description |
|---|---|
--background | リストヘッダーの背景 |
--border-color | リストヘッダーボーダーの色 |
--border-style | リストヘッダーボーダーのスタイル |
--border-width | リストヘッダー枠の幅 |
--color | リストヘッダーテキストの色 |
--inner-border-width | リストヘッダー内枠の幅 |
| Name | Description |
|---|---|
--background | リストヘッダーの背景 |
--border-color | リストヘッダーボーダーの色 |
--border-style | リストヘッダーボーダーのスタイル |
--border-width | リストヘッダー枠の幅 |
--color | リストヘッダーテキストの色 |
--inner-border-width | リストヘッダー内枠の幅 |
Slots
No slots available for this component.