Class ContentTypeMenuItem

All Implemented Interfaces:
HtmlWidget

public class ContentTypeMenuItem extends MenuItemWidget
Widget that returns back a list of hyperlinks for rendering the contents of a page in a variety of content types.

The variable it resolves is "$W{ContentTypeMenuItem}".

An example of this widget can be found in the PetStoreResource in the examples that provides a drop-down menu item for rendering all other supported content types in plain text:

@RestGet("/") @HtmlDocConfig( widgets={ ContentTypeMenuItem.class, }, navlinks={ "up: ...", "options: ...", "$W{QueryMenuItem}", "$W{ContentTypeMenuItem}", "$W{ThemeMenuItem}", "source: ..." } ) public Collection<Pet> getPets() {

See Also: