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 button layout

Save as filesEdit on JSFiddle

Object layouts can be created using the templateLayoutFactory factory and text templates.

This example creates a custom layout for a button. The layout of the control is based on its data, status, and options.

The layout is automatically adjusted when changes are made to the values of fields, states, or options that are used in its text template.