Constructor
new Attachment(data)
Parameters:
Name | Type | Description |
---|---|---|
data |
(Object} key/value pairs of information, must at least contain "id", can basically just pass in response from Trello API |
- Source:
Example
new Trellinator().attachedLink().name().url();
Methods
(static) this.card()
Return the Card that contains this Attachment
- Source:
Example
new Notification(posted).attachedLink().card();
(static) this.id()
Return the id of this Attachment
- Source:
Example
new Notification(posted).attachedLink().id();
(static) this.link()
Return the url of this Attachment
- Source:
Example
card.cardsLinkedInAttachments().first().url();
(static) this.remove()
Remove this attachment from its containing card and return the containing card
- Source:
Example
new Notification(notification).attachedLink().remove().postComment("You can't add links here!");
(static) this.text()
Return the name of this Attachment
- Source:
Example
card.cardsLinkedInAttachments().first().name();