Constructor
new ItemData(data, documentopt)
- See:
-
- BaseItem
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
_id |
string | The _id which uniquely identifies this Item document |
||
name |
string | The name of this Item |
||
type |
string | An Item subtype which configures the system data model applied |
||
img |
string |
<optional> |
An image file path which provides the artwork for this Item |
|
data |
object |
<optional> |
The system data object which is defined by the system template.json model |
|
effects |
Collection.<BaseActiveEffect> | A collection of ActiveEffect embedded Documents |
||
folder |
string | null | The _id of a Folder which contains this Item |
||
sort |
number |
<optional> |
The numeric sort value which orders this Item relative to its siblings |
|
permission |
object |
<optional> |
An object which configures user permissions to this Item |
|
flags |
object |
<optional> |
{}
|
An object of optional key/value flags |
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
data |
object | Initial data used to construct the data object |
|
document |
BaseItem |
<optional> |
The document to which this data object belongs |
Extends
- DocumentData
Members
DEFAULT_ICON :string
The default icon used for newly created Item documents
Type:
- string