Skip to content
This repository has been archived by the owner on Aug 15, 2020. It is now read-only.

Support ORGANIZER and ATTENDEE #18

Open
bachp opened this issue Jan 20, 2014 · 6 comments
Open

Support ORGANIZER and ATTENDEE #18

bachp opened this issue Jan 20, 2014 · 6 comments

Comments

@bachp
Copy link

bachp commented Jan 20, 2014

It would be nice to be able to have a .setAttendee() or setAttendees([]) and a setOrganizer() method for Events.

@morwalz
Copy link

morwalz commented May 22, 2014

as well as setLocation

@mattcasey
Copy link

I'd be willing to help push an feature update, but I'm not sure what these added methods would provide? Things like setLocation are just wrappers for addProperty.
You can simply do:

var properties = {
'CN' : 'Some guy:mailto:[email protected]'
}
event.addProperty('ATTENDEE', '', properties);

(btw, setLocation is NOT in the npm version of this library, you need to use the github address in package.json if you want to get the most up-to-date code)

@oliversalzburg
Copy link

We're using this library to generate event invitations and I also noticed a lot of addProperty use in our code.

Having more expressive methods for this in the library would be highly appreciated. I would even go so far as to implement setters for class, priority, transparency, status and whatever else there is.

Even though these would be thin wrappers around addProperty, I think it would be a benefit simply through being more expressive with the code you write. I'd probably be able to send a PR if there is interest in merging something like that.

@ismriv
Copy link

ismriv commented Apr 14, 2015

+1

@oathcomrade
Copy link

Attendee and organizer are typed CAL-ADDRESS. It only takes value parameter. For now, it is impossible to set ROLE or PARTSTAT etc.
How can this be fixed?

@oliversalzburg
Copy link

@oathcomrade Try this:

event.addProperty(
    "ATTENDEE", "MAILTO:" + meetingAttendee.email,
    {
        ROLE     : "REQ-PARTICIPANT",
        PARTSTAT : "NEEDS-ACTION",
        RSVP     : "TRUE",
        CN       : meetingAttendee.name.full
    } );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants