Fix typeDef for label

Allow string, Text and HTMLElement, instead of only string and HTMLElement
This commit is contained in:
Matthijs Bon
2021-10-11 10:11:44 +02:00
parent d4bc7d3f39
commit 6bc8d0cd96

View File

@@ -44,7 +44,7 @@ const FullScreenEventType = {
/**
* @typedef {Object} Options
* @property {string} [className='ol-full-screen'] CSS class name.
* @property {string|HTMLElement} [label='\u2922'] Text label to use for the button.
* @property {string|Text|HTMLElement} [label='\u2922'] Text label to use for the button.
* Instead of text, also an element (e.g. a `span` element) can be used.
* @property {string|Text} [labelActive='\u00d7'] Text label to use for the
* button when full-screen is active.