Version:
Popular examples
Map
Geo objects
Balloon and hint
Controls
Hotspots
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.

Пишете на JavaScript? У нас есть вакансии
Mon Oct 31 2022 13:07:25 GMT+0300 (Moscow Standard Time)