data.category
Methods3
function M.add_to(target: StdLib.Data, field: string) -> target StdLib.Data
Adds this category to a target's category-list field.
Parameters
targetStdLib.DataTarget prototype wrapper
fieldstringCategory-list field
Returns
targetStdLib.Data
function M.remove_from(target: StdLib.Data, field: string) -> target StdLib.Data
Removes this category from a target's category-list field.
Parameters
targetStdLib.DataTarget prototype wrapper
fieldstringCategory-list field
Returns
targetStdLib.Data
function M.replace(target: StdLib.Data, field: string, replacement_name: string) -> target StdLib.Data
Replaces this category with another category.
Parameters
targetStdLib.DataTarget prototype wrapper
fieldstringCategory-list field
replacement_namestringReplacement category name
Returns
targetStdLib.Data
Fields4
M.__class: string = "Category"
M.__index : unknown
M.__call : any
M.category_types : {StdLib.Data.CategoryType, true}
Supported category prototype types. Uses the list from groups.category