<dy-legend>
Example
Loading...
<dy-legend .legends=${
[
{"label":"Label 1"},
{"label":"Label 2"},
{"label":"Label 3"}
]
} @change=${(evt) => evt.target.value = evt.detail}></dy-legend>
API
DuoyunLegendElement
Extends DuoyunScrollBaseElement
DuoyunLegendElement Instance Properties
| Property(Attribute) |
Reactive |
Type |
colors |
Yes |
``#${string}[] |
legends |
Yes |
Legend[] |
value |
Yes |
string[] |
change |
|
Emitter<string[]> |
DuoyunLegendElement Other
Shadow DOM; Extends TapResizeBaseElement
| Property(Attribute) |
Reactive |
Type |
disableScrollMask(disable-scroll-mask) |
Yes |
boolean |
| Type |
Value |
| CSS State |
top-overflow, right-overflow, bottom-overflow, left-overflow |
TapResizeBaseElement
Extends GemElement
TapResizeBaseElement Instance Properties
| Property(Attribute) |
Reactive |
Type |
resize |
|
Emitter<ResizeDetail> |
resizeThrottle |
Yes |
boolean |
borderBoxSize |
|
{ blockSize: number; inlineSize: number; } |
contentRect |
|
{ x: number; y: number; height: number; width: number; } |
TapResizeBaseElement Other