Attributes |
Name | Type | Required | Default Value | Description |
join | string | false | N/A | Used to insert a javascript function allow the user to join a community. If this attribute is not present, the javascript will not be displayed. The value of this attribute will be the name of the javascript function. The function has one argument: community ID. In order to change the state of a community from joined to unsubscribed and vice-versa, the community div needs to have the current type in the class attribute (i.e. ali-edit-portlets-narrow) and the other type in the swapclass attribute (i.e. ali-edit-portlets-chosen). The join and leave community links both need to be displayed on the page with the style attribute being 'display:none;' or 'display:visible;', depending on which link is supposed to be shown. The preview community link needs to have an isalreadyjoined attribute with a value of 'true' or 'false' depending on whether or not the user has joined community. The community div and join and leave community links and preview community link all need to have ids of 'communityxx', 'join-communityxx', 'leave-communityxx', and 'preview-communityxx' where 'xx' is the id of the community. |
leave | string | false | N/A | Used to insert a javascript function allow the user to leave a community. If this attribute is not present, the javascript will not be displayed. The value of this attribute will be the name of the javascript function. The function has one argument: community ID. In order to change the state of a community from joined to unsubscribed and vice-versa, the community div needs to have the current type in the class attribute (i.e. ali-edit-portlets-narrow) and the other type in the swapclass attribute (i.e. ali-edit-portlets-chosen). The join and leave community links both need to be displayed on the page with the style attribute being 'display:none;' or 'display:visible;', depending on which link is supposed to be shown. The preview community link needs to have an isalreadyjoined attribute with a value of 'true' or 'false' depending on whether or not the user has joined community. The community div and join and leave community links and preview community link all need to have ids of 'communityxx', 'join-communityxx', 'leave-communityxx', and 'preview-communityxx' where 'xx' is the id of the community. |
preview | string | false | N/A | Used to insert a javascript function to preview a community. If this attribute is not present, the javascript will not be displayed. The value of this attribute will be the name of the javascript function. The function has two arguments: community ID, and whether or not the community is already joined (i.e. this.attributes.isalreadyjoined.nodeValue). |
invitation | string | false | N/A | Used to insert a javascript function to display a popup with an invitation link to the community. If this attribute is not present, the javascript will not be displayed. The value of this attribute will be the name of the javascript function. The function has one argument: community invitation ID. |
flyoutID | string | true | null | Specifies the ID of the div that will have the flyout effect. |