- 1Merchant API
- Welcome 👋
- Get Started
- 水合失败
- Authorization
- Webhooks
- Conditional Webhooks
- Security Considerations
- Multi-Language Support
- Responses
- Pagination
- Rate Limiting
- Versioning
- Change Log
- Support
- 测试
- APIs
- Orders
- Order Status
- Order Histories
- Abandoned Carts
- Order Tags
- Order Invoice
- Order Reservations
- Order Items
- Products
- Product Options
- Product Quantity
- Product Variants
- Product Tags
- Product Images
- Product Option Values
- Customer Groups
- Customers
- Digitals Product
- Categories
- Exports
- Shipments
- Shipping Companies
- Shipping Zones
- Shipping Rules
- Countries
- Product Option Templates
- Taxes
- Coupons
- Affiliates
- Order Assignment
- Special Offers
- Transactions
- Payments
- Settlements
- Settings
- Merchant
- Brands
- Reviews
- Branches
- Currencies
- SEO
- Cities
- DNS Records
- Languages
- Employees
- Advertisements
- Webhooks
- Custom URLs
- Loyalty Points
- Webhooks - Store Events
- 其他资源-Module
- 其他资源 Copy
- 2Partner Apps APIs
- 3Shipping and Fulfilment API
- 4Twilight Themes
- Getting Started
- Requirements & Review
- Files and Folders Structure
- Twig Template Engine
- Theme Architecture
- Layouts
- Pages
- Componenets
- Overview
- Home Components
- Youtube
- Fixed banner
- Testimonials
- Parallax background
- Photos slider
- Store features
- Square photos
- Fixed products
- Products slider
- Featured products - Style 1
- Featured Products - Style 2
- Featured Products - Style 3
- Brands
- Enhanced Square Banners
- Main Links
- Enhanced Slider
- Slider Products with Headers
- Latest Products
- Vertical Menu with Slider
- Product Components
- Common Components
- Change Log
- 5Twilight JS SDK
- 6Twilight Web Components
- 7Salla CLI
- 8[ Internal ] Apps APIs
- 9[Internal] AI Services APIs
- 10这是一个长长长长长长长长长长长长的文件夹
- 11这是一个长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长长的文件夹 Copy
Count Down
<salla-count-down>
web component is used to show the amount of time left until a given date. It's perfect for tracking important events, or counting down to special occasions like birthdays and anniversaries. It displays the days, hours, minutes, and seconds left with an easy-to-read countdown timer, as well as customized color, size, and labeled text properties.Example#

Usage#
HTML
SASS
Properties#
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
Boxed | boxed | The count down numbers will appear in boxes, if the value is set to true . | boolean | undefined |
Color | color | The color of the count down. | "dark" | "light" | "primary" | 'dark' |
Date | date | The count down date format, which is the following: MMM DD, YYYY HH:mm:ss. (Example: Jan 2, 2023 16:37:52). | string | undefined |
Digits | digits | The digits language format standard to show in the count down. | "auto" | "en" | 'auto' |
End of Day | end-text | the count down will end at the end of the day, if value set to true . | boolean | undefined |
End Text | end-text | The text to show when the count down ends. | string | undefined |
Labeled | labeled | Shows labels for each count down number. | boolean | undefined |
Size | size | The count down size. | "lg" | "md" | "sm" | 'md' |
Methods#
methods
allow for calling functions built by Salla to carry out certain actvities, such as endCountDown
which ends the cound down set by the developer.Method | Description | Return Type |
---|---|---|
endCountDown() | Ends the count down. | Promise<void> |

扫码加入 Apifox 微信交流群
在这里,获得 Apifox 使用上的任何帮助,快速上手让你的研测效率得到大幅提升

