Name | Type | Default | Description |
ContentHandler | object | N/A | A callback function that allows you to attach event handlers and implement custom behaviors within the card element. Use this function to interact with or modify the card's content after it has been rendered, such as adding click listeners, updating UI components, or integrating additional logic specific to the card's context. |
DataSource | object | N/A | This object serves as the data source for populating a card template. Each key corresponds to a placeholder—enclosed in double curly braces within the item's template. The associated values are used to replace these placeholders during rendering, enabling dynamic content injection into the card layout. |
Disabled | bool | false | Prevents user interactions with the element, such as clicking, typing, or focusing, effectively making the element unresponsive to input events. |
ItemTemplate | object | N/A | Specifies a custom card template for rendering card content. The template can be provided either as a string representing the ID of an '' element present in the DOM, or as a direct reference to an HTMLTemplateElement. Within the template’s HTML content, you may include one or more property placeholders using the double curly braces syntax. During rendering, each placeholder will be dynamically replaced with the corresponding property value from the associated 'dataSource' object. If you set this property using a template ID, the expected type is a string. |
UnlockKey | string | "" | Retrieves or assigns the unlockKey used to activate and gain access to the product’s features. This property is typically required for enabling full functionality after purchase or authorization. |
Locale | string | "en" | Specifies or retrieves the current language setting. This property determines which set of localized messages, as defined in the messages property, will be used for display. Changing the language updates the interface text to match the corresponding translations in messages. |
Messages | object | N/A | Defines or retrieves an object containing localized string resources used within the widget's user interface. This enables the widget's labels, messages, and other text elements to be translated and displayed according to the selected language or region, as specified by the locale property. Use this property to provide custom translations and enhance the widget's internationalization support. |
RightToLeft | bool | false | Gets or sets a value that determines whether the element’s alignment supports right-to-left (RTL) languages, such as Arabic or Hebrew. When enabled, the element’s content and layout are adjusted to display text and interface components in a right-to-left direction, ensuring proper localization for RTL locales. |
Theme | string | "" | Specifies the theme applied to the element. The theme controls the overall visual appearance, including colors, fonts, and styles, to ensure a consistent look and feel across the element. |
Unfocusable | bool | false | If set to true, the element will be excluded from keyboard navigation and cannot receive focus via user interaction, such as tabbing or clicking. |
Name | Type | Description | Event Detail |
OnSwipebottom | EventCallback<Event> | This event is triggered when the user swipes the card downward, indicating a bottom swipe gesture on the card component. | N/A |
Swipebottomed | event CardSwipebottomedEventHandler | This event is triggered when the user swipes the card downward, indicating a bottom swipe gesture on the card component. | CardSwipebottomedEventArgs |
OnSwipeleft | EventCallback<Event> | This event is triggered whenever the user performs a left swipe gesture on the card, indicating that the card has been dismissed or rejected by swiping it in a leftward direction. | N/A |
SwipedLeft | event CardSwipedLeftEventHandler | This event is triggered whenever the user performs a left swipe gesture on the card, indicating that the card has been dismissed or rejected by swiping it in a leftward direction. | CardSwipedLeftEventArgs |
OnSwiperight | EventCallback<Event> | This event is triggered whenever a user performs a right-swipe gesture on the card element, typically indicating a positive action such as approval or selection. It allows you to execute custom logic in response to the card being swiped to the right. | N/A |
SwipeRight | event CardSwipeRightEventHandler | This event is triggered whenever a user performs a right-swipe gesture on the card element, typically indicating a positive action such as approval or selection. It allows you to execute custom logic in response to the card being swiped to the right. | CardSwipeRightEventArgs |
OnSwipetop | EventCallback<Event> | This event is triggered when the user swipes the card upwards (toward the top of the screen), indicating a "swipe up" gesture on the card component. | N/A |
Swipetoped | event CardSwipetopedEventHandler | This event is triggered when the user swipes the card upwards (toward the top of the screen), indicating a "swipe up" gesture on the card component. | CardSwipetopedEventArgs |