Get Event Custom Fields

<Object|String|null> getCustomFields([<String> name])

Returns:

  • object of all custom fields if name wasn't set

  • string value if name was passed as argument

  • null if no custom field was found for the specified name

Example

var event = LViS.getEvent();
var fields = event.getCustomFields();
// {
// foo: "1",
// bar: "2",
// ...
// }
var field = event.getCustomFields('foo');
// "1"
var baz = event.getCustomFields('baz');
// null