Add custom tag suggestion handler (#424)

This commit is contained in:
Gandum2077
2025-06-24 19:47:14 +08:00
committed by GitHub
parent 838d5c9c3e
commit d5d72911ed
6 changed files with 48 additions and 11 deletions

View File

@@ -363,6 +363,11 @@ This part is used to load comics of a category.
// enable tags suggestions
enableTagsSuggestions: false,
// [Optional] handle tag suggestion click
onTagSuggestionSelected: (namespace, tag) => {
// return the text to insert into search box
return `${namespace}:${tag}`
},
}
```