Defines a body nugget. This element must be nested within the <column> element.
The <nugget> defines the heading text and look of the box surrounding the nugget.
The <nugget> element can contain the following elements:
| Element | Description |
|---|---|
| description Tag | Specifies a description of the nugget’s purpose on the page. |
| parameters Tag | Defines the parameters to pass to the nugget. |
The <nugget> element contains only these elements; it does not contain any text.
Attributes
The <nugget> element has the following attributes:
| Attribute | Description | Possible Values |
|---|---|---|
| baseUrl | Specifies the location of the nugget being requested. | The URL for the Nugget Server. You can use the variable $(NUGGET_SERVER), which resolves to the nugget server URL. |
| borders | Specifies whether the nugget box should have visible borders. By default this is true. | True (or not set) to show borders False to hide the borders |
| editUrl | If this and editUrlLabel are provided, the nugget header will include a link to the location specified by editUrl. This is normally used to provide small “edit” links to go with a nugget. Note that the link only appears if a nugget header is provided using the header attribute. | The URL for the destination of the link. Normally these links go to a page for editing the data displayed in the nugget. |
| editUrlLabel | Specifies the label that should be displayed for the editUrl link. | The text that should appear for the link. |
| header | Defines the text of the header for the nugget. | Any text. Note that providing an empty string (i.e., "") will create a blank header space. If you don’t want a header to appear, leave out the header attribute completely. |
| hide | Specifies whether the heading for the nugget should be hidden. This only hides the header text, not the entire nugget. | True to hide the heading text False (or not set) to show the heading text |
| hideNoResults | Specifies whether the nugget should be completely hidden if there are no results. | True to hide the nugget if no results are returned. False (or not set) to always show the nugget, regardless of whether it has any information to show. |
| instanceID | An ID value uniquely identifies the instance of the nugget on the page. This is only necessary when placing the grid.jsp nugget on a page. | An text value, as long as it is unique across all grid nuggets on the page. |
| methodName | Name of the nugget to display. This is combined with the value for the baseURL attribute to create the complete URL for the nugget. | The name of the nugget or page to display. |
| show | Specifies whether or not the nugget should appear. Normally, you set this to a variable that resolves to True or False. | True - the item appears. False - the item does not appear. |
| topSpacing | If set to false, eliminates some of the normal white space that appears before a nugget. This can be used to tighten up spacing between nuggets. | True – the full white space before the nugget is included. This is the default if not set. False – the extra row of space is eliminated |