Uses a spud ID parameter to return a reference to a spud object, which can then call other methods.
Returns a reference to a spud object.
Parameter | Type | Description and Values |
---|---|---|
Spud ID (required) | string | Any variable name that uniquely identifies a spud and is obtained as the return value of the addSpud call |
Use to return a reference to the main calendar spud, which then calls the getPermalink() method to provide direct links for sharing event detail views.
Important Permalinks are now a less important method for providing access to event detail pages. The URL for each event detail page now automatically reflects the event permalink.
You can copy or bookmark the URL from there, and then share it as the permanent link to the page.
<input type="button" onclick="alert(mainSpud.getPermalink())" value="Share event detail link" />
<script type="text/javascript" src="https://www.qatrumba.com/scripts/spuds.js"></script>See a live example: On the page that opens, click an event title to see an event detail view, and then click Get Permalink.
Use to return a reference to the main calendar spud, which then calls the getEventSummary() method to provide basic event information for use in other contexts.
<input type="button" onclick="showEventSummary()" value="Get event summary" />
<script type="text/javascript" src="https://www.qatrumba.com/scripts/spuds.js"></script>See a live example: On the page that opens, click an event title to see an event detail view, and then click Get Event Summary.