Legend creates a key for a map and is useful for displaying titles, descriptions, and keys for what is being mapped.

Features include:
  • Horizontal or Vertical display

A typically area of application is anywhere you need to show a key such as a map or PrimeFaces Timeline.

Based on TileMill CSS Legend.

Components and more
Use Cases
Documentation pe:legend
Attributes (move mouse over the names to see data types)
Name Description
id Unique identifier of the component in a namingContainer.
widgetVar Name of the client side widget.
rendered Boolean value to specify the rendering of the component, when set to false component will not be rendered.
binding An el expression referring to a server side UIComponent instance in a backing bean.
style Inline style of the container element.
styleClass Style class of the container element.
values Values is a Map where key=text and value=HTML color.
layout The layout of the legend: 'vertical' or 'horizontal'. Default is 'vertical'.
title The title text of the legend.
footer The footer text of the legend.
PrimeFaces Extensions Showcase - © 2011-2021,PrimeFaces: 11.0.0,PrimeFaces Extensions: 11.0.3,JSF: Apache MyFaces JSF-2.3 Core API 2.3.9,Server: jetty/9.4.36.v20210114,Build time: 2022-04-17 14:55