Overview
Framework and Utilities
Angular
React
Vue
Blazor
Integrations
Roadmap
Release Notes
Accessibility
Theme Builder
Grid
Gantt Chart
Scheduler
CardView
Chart
Editor
DockingLayout
Kanban
PivotTable
Table
Accordion
Badge
Barcode
Button
Breadcrumb
Card
Carousel
Calendar
CheckBox
ComboBox
ColorPicker
DateTimePicker
DropDownList
DropDownButton
FileUpload
Form
Gauge
Input
ListBox
ListMenu
Layout
MaskedTextBox
Menu
MultilineTextBox
MultiSplitButton
NumericTextBox
Pager
PasswordTextBox
PowerButton
ProgressBar
QueryBuilder
RadioButton
Rating
RepeatButton
Ribbon Bar
Qrcode
ScrollBar
Slider
Splitter
SwitchButton
Sortable
Tabs
Tank
TextBox
TimePicker
Toast
ToggleButton
Tooltip
Tree
Window
Create a Custom Element
View Model Binding
Data Adapter
Data Exporter
Conditional Formatter
Shadow Dom
Router
Validator
Date API
Numeric API
Drawing API
Localization
Comparison with Others
Overview
WAI-ARIA Support
Section 508 Support
WCAG Compliance
Keyboard Shortcuts
Right-to-left Languages
Overview
Using with Angular
Component NPM packages
Template-driven Forms
Forms Custom Validation
Reactive Forms
Angular Signals
Angular Universal - Server side Rendering
Angular Grid
Angular Grid Data Service
NGX Translate Grid
Angular Grid Refresh Data Source
ngFor Directive
Angular HTTP and Grid CRUD
Dynamic Forms
Form Numeric Validation
Notification Angular Service
Angular routing with Tabs
Angular routing with Splitter
Angular routing with Accordion
Angular Component in Grid column
Refresh Grid data source
Dynamic Components in Tabs
Dynamic Table with ng-for
Angular Debug with VS Code
Angular RxJS
Angular RxJS Server Paging
Angular Azure Face API
Angular Azure Cosmos DB
Angular Electron with Grid
Angular Grid Editing with Form
Angular Grid as Standalone
Angular Gantt as Standalone
Angular Scheduler as Standalone
Using with React
React with Typescript
Using the state Hook
React Grid
NextJS & Grid
Next JS with SSR
Vite
React Kanban Remote data
React Scheduler & MySQL
React Scheduler & MongoDB
React Grid Remote Data
React Grid Edit with Form
React Grid Styling
React Grid CRUD
React Hooks in Grid
React Components in Grid cells
React Components in Table cells
React Grid CRUD with Express JS and MySQL
React Grid and GraphQL
Using with Vue 3
Using with Vue 3 & Typescript
Using with Vue 3 Composition API
Using with Vue 2
Using ListBox with Vue 2
Vue Routing
Vue Grid Data Bind
Using with Blazor & .NET 8, 9
Using with Blazor & .NET 5, 6, 7
Using Blazor with JS Components
Two-way Binding
Localization
Adding to Toolbox
Web Assembly CRUD Application
PWA Application
Desktop Application
.NET MAUI & Blazor
Full-stack app with GraphQL
Full-stack app with GraphQL(2)
Blazor CardView
Setup CardView
Cardview Editing
Cardview Scroll
Blazor Chart
Setup Chart
Chart Axes
Chart Formatting
Chart Polar/Spider
Chart Types
Blazor Editor
Setup Editor
Editor Find & Replace
Editor Inline toolbar
Editor markdown
Editor methods
Editor Paste format
Editor toolbar
Editor toolbar items
Custom toolbar items(JSInterop)
Editor Image Upload
Blazor Docking Layout
Blazor Gantt
Setup Gantt
Gantt Data Bind
Gantt Data Bind to JSON
Gantt events
Gantt export
Gantt header
Gantt nonworking-time
Gantt resources
Gantt Customization
Gantt Timeline
Gantt Custom Header(JSInterop)
Blazor Grid
Setup Grid
Grid Column Menu
Grid Columns Bind
Grid Columns Command Menu
Grid Columns Format
Grid Columns Freeze
Grid Columns Group
Grid Columns Reorder
Grid Columns Resize
Grid Data Bind to CSV
Grid Data Bind to Enumerable
Grid Data Bind to JSON
Grid Data Bind to SQL
Grid Data Bind to Web API
Grid Events
Grid Export
Grid Editing
Grid Filter
Grid Grouping
Grid Paging
Grid Refresh Data
Grid Selection
Grid Server side Crud
Localization
OData binding
Dynamic Template(JSInterop)
Custom Editor
Custom Tooltips
Blazor Inputs
Button
Switch Button
Radio Button
Repeat Button
Dropdown Button
Toggle Button
Progress Bar
Checkbox
Card
Check Input
Multicombo Input
Multi Input
Number Input
Numeric Textbox
Date/Time Picker
Date Range Input
Date Input
Calendar
Slider
Masked TextBox
Password TextBox
File Upload
File Upload handle Files
Dropdownlist
Dropdownlist with Label & Value
Combobox
Combobox with Label & Value
Color Picker
Time Picker
Tank
Blazor Kanban
Setup Kanban
Kanban Nested columns
Kanban SQL bind
Kanban Server Side CRUD
Blazor Pivot
Setup Pivot Table
Pivot Table Columns
Pivot Table Designer
Pivot Table Export
Pivot Table Toolbar
Pivot Table Totals
Blazor Scheduler
Setup Scheduler
Scheduler Agenda view
Scheduler Data Bind to JSON
Scheduler Day View
Scheduler Edit Events
Scheduler Month View
Scheduler Timeline Day View
Scheduler Timeline Month View
Scheduler Timeline Week View
Scheduler Views
Scheduler Week View
Scheduler Custom Footer(JSInterop)
Scheduler SQL bind
Scheduler Server Side CRUD
Blazor Table
Setup Table
Table Change Columns
Table Column Hierarchy
Table Header and Footer
Table Selection
Blazor Accordion
Blazor Tabs
Blazor Tree
Blazor Form
Blazor Form Value Handling
Blazor Query Builder
Blazor ListMenu
Blazor Toast
Blazor Pager
Blazor Menu
Blazor Gauge
Blazor Sortable
Blazor Carousel
Blazor Window
Misc
Tabs Selection
Hide Calendar Weekends
API
Accordion API
Accordion Item API
Button API
Button group API
Breadcrumb API
Card API
Cardview API
Carousel API
Color input API
Country input API
Color picker API
Combobox API
Calendar API
Dropdown list API
Date/time picker API
Date range input API
Date input API
Docking layout API
Dropdown button API
Editor API
File upload API
Form API
Form control API
Form group API
Gantt API
Gauge API
Grid API
Input API
Kanban API
Layout API
Layout group API
Layout item API
List box API
List item API
Masked textbox API
Menu API
Menu item API
Menu items group API
Multi combo input API
Multi input API
Numeric input API
Numeric textbox API
Pager API
Password input API
Password textbox API
Pivot Table API
Phoneinput API
Progressbar API
Query Builder API
Radio Button API
Rating API
Scheduler API
Scrollbar API
Slider API
Splitter API
Tank API
Textbox API
Textarea API
Tabs API
Toast API
TimeInput API
TimePicker API
Tree API
TreeItem API
Window API
Using with Typescript
Using with Lit Element
Using with Sharepoint
Using with PHP & MYSQL
Using with Meteor
Using with Ionic
Using with Stencil
Using Smart.Window with Stencil
Using with Svelte
Using with Electron
Using with Azure Cosmos DB
Using Firebase & OAuth2
Using with AWS DynamoDB
Using with NX(Angular & React)
Using with Webpack
Build ES6 modules with Webpack
Overview
Accessibility
CSS Styling
API
Overview
CSS Styling
Overview
Chart Styling
Chart Formatting
Chart Axes
Chart Types
API
3D Chart Axes
3D Chart Formatting
3D Chart Controls
3D Chart Styling
3D Chart Types
3D Chart API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Editor Toolbar
Context Menu
Auto Save
Iframe mode
Find & Replace
Editor Methods
Markdown
Dialogs
Video
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Data bind
Column definitions
Column headers
Column reorder
Context menu
Row Filtering
Row Freeze
Row IDs
Row Reorder
Row Resize
Row Sort
Row Span
Header & Footer
Editing
Cell Editing
Cell Templates
Filtering & Sorting
Grouping
Grouping: Expanding Groups
Paging
Nested Grids
Tree Grid
Rows & Columns
Get Row or Cell
Cascading Cell Editors
Conditional Row Select
Export
Export: Selected Records
Firebase & OAuth2
Using with AWS DynamoDB
Using with NodeJS and MySQL
Scrolling
Selection
Accessibility
Localization
Multi users support
Smart.Grid vs Smart.Table
CSS Styling
Appearance
Formulas
Styling Cells
Styling Rows
API
Overview
Gantt Editing
Gantt Sorting
Gantt Filtering
Gantt Tasks Tree
Gantt Timeline
Gantt Backend Storage
Gantt Resource Management
Gantt Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
MultiInput API
CheckInput API
MultiComboInput API
NumberInput API
DateInput API
DateRangeInput API
TimeInput API
ColorInput API
TextArea API
API
Overview
Accessibility
Kanban Complex layouts
Kanban Editing Customization
Kanban User comments
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
Query Parser
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
CSS Styling
API
Overview
CSS Styling
API
Overview
Current Time Indicator
Drag & Resize Events
Scheduler Events
Google Calendar Sync
Google Calendar Import/Export
Custom Header
Import & Export Events
Menus
Methods
Resources & Grouping
Time table
Time zones
Views
Windows
Signal R Integration
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
Overview
Accessibility
CSS Styling
API
A Switch represents a button with two states, on and off. Switches are most often used on mobile devices to enable and disable options.
smart-switch-button
mousedown
event). release – The switch state changes only when the mouse button is released (mouseup
event), after a complete click. pressAndRelease – The switch state changes onmousedown
, and automatically reverts to the original state onmouseup
.Note: This property is effective only whenswitchMode
is set to'click'
.Sets or retrieves the current animation mode. When this property is set to'none', all animations are disabled. For other valid values, the corresponding animation effects will be enabled according to the specified mode.
Allowed Values
Set theanimation property.
<smart-switch-button animation='none'></smart-switch-button>
Set theanimation property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.animation = 'simple';
Get theanimation property.
const switchbutton = document.querySelector('smart-switch-button');
let animation = switchbutton.animation;
Specifies how the switch button responds to user interaction when the switchMode is set to 'click'. This property determines the exact mouse action that triggers a change in the switch’s state:
mousedown
event).mouseup
event), after a complete click.mousedown
, and automatically reverts to the original state onmouseup
.switchMode
is set to'click'
.Set theclickMode property.
<smart-switch-button click-mode='press'></smart-switch-button>
Set theclickMode property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.clickMode = 'pressAndRelease';
Get theclickMode property.
const switchbutton = document.querySelector('smart-switch-button');
let clickMode = switchbutton.clickMode;
Sets the check state to indicate whether the item is checked, unchecked, or indeterminate; or retrieves the current check state of the item.
Set thechecked property.
<smart-switch-button checked></smart-switch-button>
Set thechecked property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.checked = false;
Get thechecked property.
const switchbutton = document.querySelector('smart-switch-button');
let checked = switchbutton.checked;
Controls whether the ratio button is displayed and can be interacted with by the user. Set to true to show and enable the button, or false to hide or disable it.
Set thedisabled property.
<smart-switch-button disabled></smart-switch-button>
Set thedisabled property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.disabled = false;
Get thedisabled property.
const switchbutton = document.querySelector('smart-switch-button');
let disabled = switchbutton.disabled;
Defines the text label or string that will be displayed when the checked property is set to false, representing the unchecked state of the component or element.
Set thefalseContent property.
<smart-switch-button false-content='OFF'></smart-switch-button>
Set thefalseContent property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.falseContent = 'False';
Get thefalseContent property.
const switchbutton = document.querySelector('smart-switch-button');
let falseContent = switchbutton.falseContent;
Defines a custom template that is displayed when the component is in the false state. This template allows you to specify the content or layout shown when the evaluated condition is false.
Set thefalseTemplate property.
<smart-switch-button false-template='templateId1'></smart-switch-button>
Set thefalseTemplate property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.falseTemplate = templateId2;
Get thefalseTemplate property.
const switchbutton = document.querySelector('smart-switch-button');
let falseTemplate = switchbutton.falseTemplate;
Controls whether the switch is in an indeterminate state or retrieves its current indeterminate status. When set to true, the switch appears visually distinct to indicate that its state is neither clearly on nor off. This is typically used to represent a partial or mixed selection.
Set theindeterminate property.
<smart-switch-button indeterminate></smart-switch-button>
Set theindeterminate property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.indeterminate = false;
Get theindeterminate property.
const switchbutton = document.querySelector('smart-switch-button');
let indeterminate = switchbutton.indeterminate;
Specifies the direction in which the switch toggles between states. If set to true, the positions of the switch states are inverted, meaning the ON and OFF positions are swapped.
Set theinverted property.
<smart-switch-button inverted></smart-switch-button>
Set theinverted property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.inverted = false;
Get theinverted property.
const switchbutton = document.querySelector('smart-switch-button');
let inverted = switchbutton.inverted;
Retrieves or assigns the unlockKey value, which serves as a credential to enable access to the product’s locked features or functionality.
Set theunlockKey property.
<smart-switch-button unlock-key=''></smart-switch-button>
Set theunlockKey property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.unlockKey = '1111-2222-3333-4444-5555';
Get theunlockKey property.
const switchbutton = document.querySelector('smart-switch-button');
let unlockKey = switchbutton.unlockKey;
Specifies or retrieves the current language code (e.g., 'en', 'fr', 'es'). This property determines which language is used for message localization when working with themessages property. Setting this value ensures the corresponding localized messages are displayed or accessed appropriately.
Set thelocale property.
<smart-switch-button locale='de'></smart-switch-button>
Set thelocale property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.locale = 'fr';
Get thelocale property.
const switchbutton = document.querySelector('smart-switch-button');
let locale = switchbutton.locale;
Callback function associated with the localization module. This callback is invoked whenever localization-related events occur, such as changes in language, region settings, or translation updates. It enables the module to respond dynamically to localization changes in the application.
Set thelocalizeFormatFunction property.
<smart-switch-button localize-format-function='function(){return '...'}'></smart-switch-button>
Set thelocalizeFormatFunction property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.localizeFormatFunction = function(){return '...'};
Get thelocalizeFormatFunction property.
const switchbutton = document.querySelector('smart-switch-button');
let localizeFormatFunction = switchbutton.localizeFormatFunction;
Defines an object that maps password strength states (e.g., weak, medium, strong) to their corresponding string values or messages. This allows for customized labels or feedback to be displayed to users based on the evaluated password strength.
Set themessages property.
<smart-switch-button messages='{"de":{"propertyUnknownType":"Die Eigenschaft '{{name}}' hat ein nicht definiertes 'type'-Member!","propertyInvalidValue":"Ungultiger Eigenschaftswert '{{name}}'! Aktueller Wert: {{actualValue}}, Erwarteter Wert: {{value}}!","propertyInvalidValueType":"Ungultiger Eigenschaftswert '{{name}}'! Aktueller Wert: {{actualType}}, Erwarteter Wert: {{type}}!","elementNotInDOM":"Element existiert nicht in DOM! Bitte fugen Sie das Element zum DOM hinzu, bevor Sie eine Methode aufrufen.","moduleUndefined":"Modul ist nicht definiert.","missingReference":"{{elementType}}: Fehlender Verweis auf {{files}}.","htmlTemplateNotSuported":"{{elementType}}: Browser unterstutzt keine HTMLTemplate-Elemente.","invalidTemplate":"{{elementType}}: '{{property}}' Die Eigenschaft akzeptiert eine Zeichenfolge, die mit der ID eines HTMLTemplate-Elements aus dem DOM ubereinstimmen muss."}}'></smart-switch-button>
Set themessages property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.messages = {"en":{"propertyUnknownType":"'{{name}}' property is with undefined 'type' member!","propertyInvalidValue":"Invalid '{{name}}' property value! Actual value: {{actualValue}}, Expected value: {{value}}!","propertyInvalidValueType":"Invalid '{{name}}' property value type! Actual type: {{actualType}}, Expected type: {{type}}!","elementNotInDOM":"Element does not exist in DOM! Please, add the element to the DOM, before invoking a method.","moduleUndefined":"Module is undefined.","missingReference":"{{elementType}}: Missing reference to {{files}}.","htmlTemplateNotSuported":"{{elementType}}: Browser doesn't support HTMLTemplate elements.","invalidTemplate":"{{elementType}}: '{{property}}' property accepts a string that must match the id of an HTMLTemplate element from the DOM."}};
Get themessages property.
const switchbutton = document.querySelector('smart-switch-button');
let messages = switchbutton.messages;
Retrieves the current name of the widget or assigns a new name to the widget. This property can be used to identify or reference the widget programmatically.
Set thename property.
<smart-switch-button name='Name'></smart-switch-button>
Set thename property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.name = 'New Name';
Get thename property.
const switchbutton = document.querySelector('smart-switch-button');
let name = switchbutton.name;
Specifies the layout direction of the switch component, determining whether it is displayed horizontally or vertically. Use this property to control how the switch and its label are arranged within the user interface.
Set theorientation property.
<smart-switch-button orientation='vertical'></smart-switch-button>
Set theorientation property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.orientation = 'horizontal';
Get theorientation property.
const switchbutton = document.querySelector('smart-switch-button');
let orientation = switchbutton.orientation;
When the custom element is set to readonly, users will not be able to modify its content or trigger any interactive behaviors such as editing, selecting, or submitting data through the element. However, the element remains visible and its value can still be programmatically accessed or updated by scripts.
Set thereadonly property.
<smart-switch-button readonly></smart-switch-button>
Set thereadonly property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.readonly = false;
Get thereadonly property.
const switchbutton = document.querySelector('smart-switch-button');
let readonly = switchbutton.readonly;
Specifies the text label or value that will be displayed when the checked property is set to true. This text represents the state of the component when it is selected or activated.
Set thetrueContent property.
<smart-switch-button true-content='ON'></smart-switch-button>
Set thetrueContent property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.trueContent = 'True';
Get thetrueContent property.
const switchbutton = document.querySelector('smart-switch-button');
let trueContent = switchbutton.trueContent;
Defines a custom template to display when the state is true, allowing you to specify how content should appear in this condition.
Set thetrueTemplate property.
<smart-switch-button true-template='templateId1'></smart-switch-button>
Set thetrueTemplate property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.trueTemplate = 'templateId2';
Get thetrueTemplate property.
const switchbutton = document.querySelector('smart-switch-button');
let trueTemplate = switchbutton.trueTemplate;
Configures how users can interact with the switch element to change its state. The switchMode property accepts the following options:
Set theswitchMode property.
<smart-switch-button switch-mode='click'></smart-switch-button>
Set theswitchMode property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.switchMode = 'drag';
Get theswitchMode property.
const switchbutton = document.querySelector('smart-switch-button');
let switchMode = switchbutton.switchMode;
Specifies the theme for the element, which controls its overall visual appearance—including colors, fonts, and style. Selecting a theme customizes how the element is presented to users, ensuring consistency with the application's design.
Set thetheme property.
<smart-switch-button theme='blue'></smart-switch-button>
Set thetheme property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.theme = 'red';
Get thetheme property.
const switchbutton = document.querySelector('smart-switch-button');
let theme = switchbutton.theme;
When set to true, this property prevents the element from receiving keyboard focus, making it impossible for users to select the element using the Tab key or other keyboard navigation methods.
Set theunfocusable property.
<smart-switch-button unfocusable></smart-switch-button>
Set theunfocusable property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.unfocusable = false;
Get theunfocusable property.
const switchbutton = document.querySelector('smart-switch-button');
let unfocusable = switchbutton.unfocusable;
Sets a new value for the widget or retrieves its current value. Use this to programmatically update what the widget displays or to access the user's input.
Set thevalue property.
<smart-switch-button value='Value'></smart-switch-button>
Set thevalue property by using the HTML Element's instance.
const switchbutton = document.querySelector('smart-switch-button');
switchbutton.value = 'New Value';
Get thevalue property.
const switchbutton = document.querySelector('smart-switch-button');
let value = switchbutton.value;
This event is triggered whenever the widget's state changes between checked and unchecked, such as when a user selects or deselects it. The event provides updated information about the new checked state of the widget.
Returnstrue if the event was preventedby any of its subscribers.
booleantrue if the default action was prevented.Otherwise, returnsfalse.
The preventDefault() method prevents the default action for a specified event.In this way, the source component suppressesthe built-in behavior that follows the event.
The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
Set up the event handler ofchange event.
const switchbutton = document.querySelector('smart-switch-button');switchbutton.addEventListener('change', function (event) { const detail = event.detail, value = detail.value, oldValue = detail.oldValue, changeType = detail.changeType;// event handling code goes here.})
This event is triggered whenever the widget transitions to a checked state, such as when a user selects, activates, or toggles the widget to indicate it is checked. It allows developers to execute custom logic in response to changes in the widget's checked status.
Returnstrue if the event was preventedby any of its subscribers.
booleantrue if the default action was prevented.Otherwise, returnsfalse.
The preventDefault() method prevents the default action for a specified event.In this way, the source component suppressesthe built-in behavior that follows the event.
The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
Set up the event handler ofcheckValue event.
const switchbutton = document.querySelector('smart-switch-button');switchbutton.addEventListener('checkValue', function (event) { const detail = event.detail, changeType = detail.changeType;// event handling code goes here.})
This event is triggered whenever the user unchecks the widget, indicating a change from a checked (selected) state to an unchecked (deselected) state. This allows you to execute custom logic in response to the widget being deselected.
Returnstrue if the event was preventedby any of its subscribers.
booleantrue if the default action was prevented.Otherwise, returnsfalse.
The preventDefault() method prevents the default action for a specified event.In this way, the source component suppressesthe built-in behavior that follows the event.
The stopPropagation() method of the Event interface prevents further propagation of the current event in the capturing and bubbling phases.
Set up the event handler ofuncheckValue event.
const switchbutton = document.querySelector('smart-switch-button');switchbutton.addEventListener('uncheckValue', function (event) { const detail = event.detail, changeType = detail.changeType;// event handling code goes here.})
Default width of the SwitchButton.
smartSwitchButton default height
smartSwitchButton thumb size