Constructor
new RollTableData(data, documentopt)
- See:
-
- BaseRollTable
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
_id |
string | The _id which uniquely identifies this RollTable document |
||
name |
string | The name of this RollTable |
||
img |
string |
<optional> |
An image file path which provides the thumbnail artwork for this RollTable |
|
description |
string |
<optional> |
The HTML text description for this RollTable document |
|
results |
Collection.<BaseTableResult> |
<optional> |
[]
|
A Collection of TableResult embedded documents which belong to this RollTable |
formula |
string | The Roll formula which determines the results chosen from the table |
||
replacement |
boolean |
<optional> |
true
|
Are results from this table drawn with replacement? |
displayRoll |
boolean |
<optional> |
true
|
Is the Roll result used to draw from this RollTable displayed in chat? |
folder |
string | null | The _id of a Folder which contains this RollTable |
||
sort |
number |
<optional> |
The numeric sort value which orders this RollTable relative to its siblings |
|
permission |
object |
<optional> |
An object which configures user permissions to this RollTable |
|
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 |
BaseRollTable |
<optional> |
The document to which this data object belongs |
Extends
- DocumentData
Members
DEFAULT_ICON :string
The default icon used for newly created Macro documents
Type:
- string