You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to add multiple values by this method? For example, to EXDATE where you can add a comma delimited list of dates. I would expect something like this to work:
const vevent = new ICAL.Component('vevent');
vevent.addPropertyWithValue([new ICAL.Time({year: 2020}), new ICAL.Time({year: 2021})]);
But this will produce the following error:
TypeError: property[0].toUpperCase is not a function
I ended up using the lower-level method:
function createExdateProperty (times) {
const strings = times.map((time) => time.toICALString());
return new this.ICAL.Property(['exdate', {}, 'date-time', ...strings]);
}
Maybe would you consider adding something like addPropertyWithMultiValue, or allow to pass an array to addPropertyWithValue, for the multi-value components?
The text was updated successfully, but these errors were encountered:
Is it possible to add multiple values by this method? For example, to EXDATE where you can add a comma delimited list of dates. I would expect something like this to work:
But this will produce the following error:
I ended up using the lower-level method:
Maybe would you consider adding something like
addPropertyWithMultiValue
, or allow to pass an array toaddPropertyWithValue
, for the multi-value components?The text was updated successfully, but these errors were encountered: