tags
Description
Optional. An array of hashtags to be shown by default
tip
To view the list of hashtags, type #
in the search bar or in the text editor
Usage
tags?: string[];
info
A hashtag can start with any symbol, the #
symbol is added automatically
Example
const { ToDo, Toolbar } = todo;
const { tasks, users, projects } = getData();
const list = new ToDo("#root", {
tasks,
users,
projects,
tags: ["urgent", "normal"]
});
const toolbar = new Toolbar("#toolbar", {
api: list.api,
});
Related articles: