Attributes |
Name | Type | Required | Default Value | Description |
add | string | false | N/A | Used to insert a javascript function to add a portlet to the page. 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: portlet ID. In order to change the state of a portlet from added to removed and vice-versa, the portlet 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 add and remove portlet 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 portlet link needs to have an onpage attribute with a value of 'true' or 'false' depending on whether or not the portlet is on the page. The portlet div and add and remove portlet links and preview portlet link all need to have ids of 'portletxx', 'add-portletxx', 'remove-portletxx', and 'preview-portletxx' where 'xx' is the id of the portlet. |
remove | string | false | N/A | Used to insert a javascript function to remove a portlet from the page. 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: portlet ID. In order to change the state of a portlet from added to removed and vice-versa, the portlet 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 add and remove portlet 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 portlet link needs to have an onpage attribute with a value of 'true' or 'false' depending on whether or not the portlet is on the page. The portlet div and add and remove portlet links and preview portlet link all need to have ids of 'portletxx', 'add-portletxx', 'remove-portletxx', and 'preview-portletxx' where 'xx' is the id of the portlet. |
preview | string | false | N/A | Used to insert a javascript function to preview a portlet. 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 three arguments: portlet ID, portlet type (narrow and wide), and whether or not the portlet is on the page (i.e. this.attributes.onpage.nodeValue). |
invitation | string | false | N/A | Used to insert a javascript function to display a popup with an invitation link to the portlet. 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: portlet invitation ID. |
addbundle | string | false | N/A | Used to insert a javascript function to add a portlet bundle to the page. 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: portlet bundle ID. |
openbundle | string | false | N/A | Used to insert a javascript function to display a popup to open a portlet bundle. 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: portlet bundle ID. |
orderbyprop | string | false | N/A | Used to insert a javascript function to send a request tosort portlets by a specific property. 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: property ID. |
renamehandler | string | false | N/A | Used to insert a javascript function with flyout specific handling of page rename. |
flyoutID | string | true | null | Specifies the ID of the div that will have the flyout effect. |