new BookmarkLink(title, icon, url, createdAt, updatedAtopt)
- Description:
A BookmarkLink is a link to an URL
- Source:
Example
import { BookmarkLink } from "@thoughtsunificator/bookmarks-document"
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
title |
string | |||
icon |
string | The bookmark icon data URL |
||
url |
string | The bookmark URL |
||
createdAt |
Date |
null
|
Valid ISO 8601 date string |
|
updatedAt |
Date |
<optional> |
null
|
Valid ISO 8601 date string |
Members
url
- Source:
- To Do:
-
- parse url and check it there is a protocol, if there isn't add one.
Methods
clone() → {BookmarkLink}
- Source:
- To Do:
-
- original property to access the original bookmark
- deep
Returns:
- Type
- BookmarkLink
serialize() → {object}
- Description:
Return the serializable version of a BookmarkLink (removing any unwanted properties)
- Source:
Returns:
- Type
- object