Type definition for Attribution is not consistent with the documentation
See original GitHub issueDescribe the bug
The documentation clearly states that the label
can either be a string or an element (like span
). However, the Type Definition for Options.label = string
. I think it should be types the same as Options.collapseLabel
.
To Reproduce
See ol/attribution/Attribution.js
Expected behavior The solution is quite easy:
...
* @property {string|HTMLElement} [label='i'] Text label to use for the
* collapsed attributions button.
...
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Fundamental Attribution Error - Simply Psychology
The fundamental attribution error (also known as correspondence bias or over-attribution effect) is the tendency for people to over-emphasize dispositional, or ...
Read more >Understand attribution reporting - Knowledge Base - HubSpot
Learn the definitions for asset types, content types, interactions types and sources and more in the attribution report builder.
Read more >Citation vs. Attribution – Self-Publishing Guide
An attribution statement is used to provide credit to the original creator; its purpose is similar to a citation. Best practice says that...
Read more >Fundamental Attribution Error: What It Is & How to Avoid It
The fundamental attribution error plays a central role in how we understand the actions of others and how we justify our own.
Read more >Best practices for attribution - Creative Commons Wiki
Because each use case is different, you can decide what form of attribution is most suitable for your specific situation.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
css class names are strings. The
Instead of text, also an element (e.g. a
spanelement) can be used.
line should not be there and appears to have been separated from thelabelActive
description by the insertion of the class name options.Thanks for the report, @MatthijsBon. A pull request to fix this would be great.