Package Exports
- @forter/widget
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@forter/widget) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fc-widget
An element by Forter
Usage
<script>
import '@forter/widget';
</script>
<fc-widget
widget-id="my-widget"
style="--fc-widget-secondary-kpi-color: var(--fc-red-500)"
main-title="Approval rate by payment method"
remark="Specified date range (optional) | By $"
remark-icon="forter"
kpi="99.87%"
secondary-kpi="0.13%"
kpi-remark="Total Approval Rate"
actions=[{"label":"View data by","id":"0","options":[{"label":"Show by number of TX","id":"0","selected":true},{"label":"Show by lala of TX","id":"1","selected":false},{"label":"Show by value of TX","id":"2","selected":false}]}]>
</fc-widget>Properties
| Property | Attribute | Type | Default |
|---|---|---|---|
KPIIcon |
kpi-icon |
TemplateResult | null |
|
config |
config |
{} |
{} |
remarkIcon |
TemplateResult | null |
||
secondDimensionValue |
string |
||
secondaryKPI |
TemplateResult | null |
||
trendChip |
TemplateResult | null |
Events
| Event | Description |
|---|---|
action |
menu action click. |
CSS Custom Properties
| Property | Description |
|---|---|
--fc-widget-disabled-color |
color. |