Add label option to FullScreen control

This commit is contained in:
tsauerwein
2015-01-15 10:59:59 +01:00
parent 0d26a9aa87
commit 7679069520
4 changed files with 43 additions and 15 deletions

View File

@@ -980,6 +980,8 @@ olx.control.DefaultsOptions.prototype.zoomOptions;
/**
* @typedef {{className: (string|undefined),
* label: (string|undefined),
* labelActive: (string|undefined),
* tipLabel: (string|undefined),
* keys: (boolean|undefined),
* target: (Element|undefined)}}
@@ -996,6 +998,23 @@ olx.control.FullScreenOptions;
olx.control.FullScreenOptions.prototype.className;
/**
* Text label to use for the button. Default is `\u2194` (an arrow).
* @type {string|undefined}
* @api
*/
olx.control.FullScreenOptions.prototype.label;
/**
* Text label to use for the button when full-screen is active.
* Default is `\u00d7` (a cross).
* @type {string|undefined}
* @api
*/
olx.control.FullScreenOptions.prototype.labelActive;
/**
* Text label to use for the button tip. Default is `Toggle full-screen`
* @type {string|undefined}