@book
Overview
The @book
decorator is used to identify a class as a Book.
Syntax
Keyword Arguments
Argument
Type
Description
id
str
A unique identifier for the Book.
icon
str
Path to an icon representing the Book. If not provided, a default icon will be used.
name
str
The name of the Book. If not provided, the name will be inferred from the class name.
noun_phrase
str
The book noun phrase.
Default Icon
If an icon
is not specified, this will be used as the default.
Example
Last updated
Was this helpful?