useTopBarTitle(title: string, ellipsis?: number)
Requires:
@ray-js/panel-sdk≥1.0.0
Description
Set the top navigation bar title in the mini program, with automatic truncation for long text
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | Yes | The title text to set |
ellipsis | number | No | Maximum title length in characters; adds an ellipsis when exceeded. Default is 14 |
Return Value
Type: (titleRes: string) => void[]
Tuple [setTitle], containing a function to manually set the title