Constructor
new EpubItem(idopt, fileNameopt, mediaTypeopt, contentopt, manifestopt)
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
id |
string |
<optional> |
""
|
Unique identifier for this item |
fileName |
string |
<optional> |
""
|
File name for this item |
mediaType |
string |
<optional> |
""
|
Media type for this item |
content |
string |
<optional> |
""
|
Content for this item |
manifest |
boolean |
<optional> |
true
|
If true, this item will be added to the manifest |
Methods
getType() → {ItemTypeEnum}
- Source:
Guesses type according to the file extension. Might not be the best way to do it, but it works for now.
We map the type by finding the file extension in ItemTypeFileExtensionMap
Returns:
The type of the item
- Type
- ItemTypeEnum