Class: CustomField

TrelloEntities.CustomField(data)

The CustomField class represents a CustomField in Trello. You will mostly interact with this class when returned in an IterableCollection from a Card method or as a result of a Notification

Constructor

new CustomField(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:

Methods

(static) this.card()

Return the Card on which this comment was added

Source:
Example
var card = new Notification(posted).addedCustomField().card();

(static) this.id()

Return the id of this comment

Source:
Example
card.comments().first().id();

(static) this.name()

Return the name of the custom field

Source:
Example
card.comments().first().text();

(static) this.oldValue()

Return the old value

Source:

(static) this.setOldValue()

Set the old value

Source:

(static) this.value()

Return the value set for the current card

Source: