Top Movers Widget
A compact 24h gainers and losers table with instant tab switching.
Demo
Light / dark, variantsTheme
View
Integration
Include the script once per page. Use any method below — all render the same widget.
1
Markup (auto)
Load the script, add an empty element with data-cw-movers, done. The table paints a skeleton first, then fills with data.
HTML
<script src="https://cdn.bubblenexus.com/widgets/v1/coin-widgets.js?v=1.4.1"></script>
<div
data-cw-movers
data-limit="10"
data-view="both"
data-theme="light"
></div>2
JavaScript API
Create the table from JS when you need programmatic control, e.g. rendering it only for certain routes or users.
HTML + JS
<div id="movers"></div>
<script src="https://cdn.bubblenexus.com/widgets/v1/coin-widgets.js?v=1.4.1"></script>
<script>
ChipWidget.movers({
target: "#movers",
limit: 10,
view: "gainers",
theme: "light",
icon: true,
link: false
});
</script>Options
In markup use data-*attributes; in the JavaScript API drop the data- prefix.
| Attribute | Values | Default | Description |
|---|---|---|---|
data-limit | 1–50 | 10 | How many rows to show per tab. |
data-view | both | gainers | losers | both | Which tab is active on load. losers starts on the Losers tab, anything else starts on Gainers — both tabs are always shown so visitors can switch. |
data-theme | light | dark | light | Colour palette used by the table. |
data-icon | true | false | true | Show coin logos in the Coin column. |