Version:
Popular examples
Map
Geo objects
Balloon and hint
Controls
Hotspots
Regions
Clustering
GeoQuery
Behaviors and events
Search on a map
Traffic
User's location
Routing
YMapsML
GeoXML
ObjectManager
Modular system
Panoramas
External modules

Custom cluster balloon layout

Save as filesEdit on JSFiddle
This example creates a custom layout for the cluster balloon content.
The layout is specified with the 'clusterBalloonContentLayout' option.
Layouts for objects can be created using the factory templateLayoutFactory and text templates.
Text templates generate the HTML content of the layout from data hashes passed to the layout constructor.
In this example, the data provider is the cluster where the balloon was opened.

The layout enumerates and outputs the 'placemarkId' and 'balloonContentHeader' fields for all the cluster's geo objects using the 'for' construction.