HeaderOption
type HeaderOption = { enabled?: boolean; leftAction?: { icon: HeaderIcon; onClick: () => void; }; rightAction?: { icon: HeaderIcon; onClick: () => void; }; title?: { enabled?: boolean; text?: string; };};
Properties
Section titled “Properties”enabled?
Section titled “enabled?”optional enabled: boolean;
Enables or disables the header UI.
leftAction?
Section titled “leftAction?”optional leftAction: { icon: HeaderIcon; onClick: () => void;};
Configuration for an additional custom button on the left side of the header.
Name | Type |
---|---|
|
|
|
() => |
rightAction?
Section titled “rightAction?”optional rightAction: { icon: HeaderIcon; onClick: () => void;};
Configuration for an additional custom button on the right side of the header.
Name | Type |
---|---|
|
|
|
() => |
title?
Section titled “title?”optional title: { enabled?: boolean; text?: string;};
Configuration for header title display, which defaults to showing thread titles.
Name | Type | Description |
---|---|---|
|
|
Default
|
|
|
Static text to show in the header title area. When not provided, the title of the current thread will be shown instead. |