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 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
Tank is a UI Component used in Engineering and Scientific applications. It is broadly used to display the fluid levels.
smart-tank
Sets or gets the animation mode. Animation is disabled when the property is set to'none'
Allowed Values
Set theanimation property.
<smart-tank animation='none'></smart-tank>
Set theanimation property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.animation = 'simple';
Get theanimation property.
const tank = document.querySelector('smart-tank');
let animation = tank.animation;
If is set to true all values coerce to the interval, set in the interval property.
Set thecoerce property.
<smart-tank coerce></smart-tank>
Set thecoerce property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.coerce = false;
Get thecoerce property.
const tank = document.querySelector('smart-tank');
let coerce = tank.coerce;
Sets or gets whether custom ticks at (possibly) uneven interval will be plotted. The ticks to be plotted are defined with the propertycustomTicks.
Set thecustomInterval property.
<smart-tank custom-interval></smart-tank>
Set thecustomInterval property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.customInterval = false;
Get thecustomInterval property.
const tank = document.querySelector('smart-tank');
let customInterval = tank.customInterval;
IfcustomInterval is enabled, sets a list of ticks to be plotted. Ifcoerce is set totrue, the value will snap to these ticks.
Set thecustomTicks property.
<smart-tank custom-ticks='[100, 200, 1000, 8000, 10000]'></smart-tank>
Set thecustomTicks property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.customTicks = [1, 3, 5, 8];
Get thecustomTicks property.
const tank = document.querySelector('smart-tank');
let customTicks = tank.customTicks;
Sets or gets the pattern which labels are displayed in whenmode is'date'.
Set thedateLabelFormatString property.
<smart-tank date-label-format-string='dddd-MMMM-yyyy'></smart-tank>
Set thedateLabelFormatString property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.dateLabelFormatString = 'FP';
Get thedateLabelFormatString property.
const tank = document.querySelector('smart-tank');
let dateLabelFormatString = tank.dateLabelFormatString;
Sets or gets the char to use as the decimal separator in numeric values.
Set thedecimalSeparator property.
<smart-tank decimal-separator=','></smart-tank>
Set thedecimalSeparator property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.decimalSeparator = '.';
Get thedecimalSeparator property.
const tank = document.querySelector('smart-tank');
let decimalSeparator = tank.decimalSeparator;
Enables or disables the widget.
Set thedisabled property.
<smart-tank disabled></smart-tank>
Set thedisabled property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.disabled = false;
Get thedisabled property.
const tank = document.querySelector('smart-tank');
let disabled = tank.disabled;
When cooerce property is true, all values coerce to the interval's value.
Set theinterval property.
<smart-tank interval='2'></smart-tank>
Set theinterval property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.interval = 10;
Get theinterval property.
const tank = document.querySelector('smart-tank');
let interval = tank.interval;
Sets the direction of the tank. If is true - positions of the tank's begin and end are changed.
Set theinverted property.
<smart-tank inverted></smart-tank>
Set theinverted property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.inverted = false;
Get theinverted property.
const tank = document.querySelector('smart-tank');
let inverted = tank.inverted;
A callback function that can be used to format the values displayed on the tank labels.
Set thelabelFormatFunction property.
<smart-tank label-format-function='function (value) { return value + '%'; }'></smart-tank>
Set thelabelFormatFunction property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.labelFormatFunction = function (value) { return value + '$'; };
Get thelabelFormatFunction property.
const tank = document.querySelector('smart-tank');
let labelFormatFunction = tank.labelFormatFunction;
Sets or gets the widget's label visibility
Set thelabelsVisibility property.
<smart-tank labels-visibility='endPoints'></smart-tank>
Set thelabelsVisibility property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.labelsVisibility = 'none';
Get thelabelsVisibility property.
const tank = document.querySelector('smart-tank');
let labelsVisibility = tank.labelsVisibility;
Sets or gets the locale. Used in conjunction with the propertymessages.
Set thelocale property.
<smart-tank locale='de'></smart-tank>
Set thelocale property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.locale = 'fr';
Get thelocale property.
const tank = document.querySelector('smart-tank');
let locale = tank.locale;
Callback, related to localization module.
Set thelocalizeFormatFunction property.
<smart-tank localize-format-function='function(){return '...'}'></smart-tank>
Set thelocalizeFormatFunction property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.localizeFormatFunction = function(){return '...'};
Get thelocalizeFormatFunction property.
const tank = document.querySelector('smart-tank');
let localizeFormatFunction = tank.localizeFormatFunction;
Enables or disables the usage of logarithmic scale in the widget.
Set thelogarithmicScale property.
<smart-tank logarithmic-scale></smart-tank>
Set thelogarithmicScale property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.logarithmicScale = false;
Get thelogarithmicScale property.
const tank = document.querySelector('smart-tank');
let logarithmicScale = tank.logarithmicScale;
Sets or gets the maximum value of the widget.
Set themax property.
<smart-tank max='20'></smart-tank>
Set themax property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.max = 50;
Get themax property.
const tank = document.querySelector('smart-tank');
let max = tank.max;
Sets or gets the type of used mechanical action.
Set themechanicalAction property.
<smart-tank mechanical-action='switchWhenReleased'></smart-tank>
Set themechanicalAction property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.mechanicalAction = 'switchUntilReleased';
Get themechanicalAction property.
const tank = document.querySelector('smart-tank');
let mechanicalAction = tank.mechanicalAction;
Sets or gets an object specifying strings used in the widget that can be localized. Used in conjunction with the propertylocale.
Set themessages property.
<smart-tank 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.","significantPrecisionDigits":"{{elementType}}: Die Eigenschaften significantDigits und precisionDigits konnen nicht gleichzeitig eingestellt werden.","invalidMinOrMax":"{{elementType}}: Ungultiger Wert {{property}} Max kann nicht niedriger sein als Min.","noInteger":"{{elementType}}: precisionDigits konnte nur fur \"floatingPoint\" scaleType festgelegt werden."}}'></smart-tank>
Set themessages property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.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.","significantPrecisionDigits":"{{elementType}}: the properties significantDigits and precisionDigits cannot be set at the same time.","invalidMinOrMax":"{{elementType}}: Invalid {{property}} value. Max cannot be lower than Min.","noInteger":"{{elementType}}: precisionDigits could be set only on \"floatingPoint\" scaleType."}};
Get themessages property.
const tank = document.querySelector('smart-tank');
let messages = tank.messages;
Sets or gets the minimum value of the widget.
Set themin property.
<smart-tank min='20'></smart-tank>
Set themin property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.min = 50;
Get themin property.
const tank = document.querySelector('smart-tank');
let min = tank.min;
Sets or gets whether the widget works with numbers or dates.
Set themode property.
<smart-tank mode='date'></smart-tank>
Set themode property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.mode = 'numeric';
Get themode property.
const tank = document.querySelector('smart-tank');
let mode = tank.mode;
Sets or gets the element's name, which is used as a reference when the data is submitted.
Set thename property.
<smart-tank name='tank1'></smart-tank>
Set thename property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.name = 'tank2';
Get thename property.
const tank = document.querySelector('smart-tank');
let name = tank.name;
Sets the orientation of the widget
Set theorientation property.
<smart-tank orientation='vertical'></smart-tank>
Set theorientation property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.orientation = 'horizontal';
Get theorientation property.
const tank = document.querySelector('smart-tank');
let orientation = tank.orientation;
Determines the number of digits after the decimal point. Applicable only whenscaleType is'integer'.
Set theprecisionDigits property.
<smart-tank precision-digits='5'></smart-tank>
Set theprecisionDigits property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.precisionDigits = 6;
Get theprecisionDigits property.
const tank = document.querySelector('smart-tank');
let precisionDigits = tank.precisionDigits;
If the widgets is readonly, the users cannot iteract with the element.
Set thereadonly property.
<smart-tank readonly></smart-tank>
Set thereadonly property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.readonly = true;
Get thereadonly property.
const tank = document.querySelector('smart-tank');
let readonly = tank.readonly;
Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts.
Set therightToLeft property.
<smart-tank right-to-left></smart-tank>
Set therightToLeft property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.rightToLeft = true;
Get therightToLeft property.
const tank = document.querySelector('smart-tank');
let rightToLeft = tank.rightToLeft;
Sets the position of the widget's scales.
Set thescalePosition property.
<smart-tank scale-position='far'></smart-tank>
Set thescalePosition property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.scalePosition = 'both';
Get thescalePosition property.
const tank = document.querySelector('smart-tank');
let scalePosition = tank.scalePosition;
Sets the type of the tank's scale.
Set thescaleType property.
<smart-tank scale-type='integer'></smart-tank>
Set thescaleType property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.scaleType = 'floatingPoint';
Get thescaleType property.
const tank = document.querySelector('smart-tank');
let scaleType = tank.scaleType;
Enables or disables scientific notation.
Set thescientificNotation property.
<smart-tank scientific-notation></smart-tank>
Set thescientificNotation property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.scientificNotation = true;
Get thescientificNotation property.
const tank = document.querySelector('smart-tank');
let scientificNotation = tank.scientificNotation;
Enables or disables displaying of the thumb label.
Set theshowThumbLabel property.
<smart-tank show-thumb-label></smart-tank>
Set theshowThumbLabel property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.showThumbLabel = true;
Get theshowThumbLabel property.
const tank = document.querySelector('smart-tank');
let showThumbLabel = tank.showThumbLabel;
Enables or disables displaying of the tooltip.
Set theshowTooltip property.
<smart-tank show-tooltip></smart-tank>
Set theshowTooltip property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.showTooltip = true;
Get theshowTooltip property.
const tank = document.querySelector('smart-tank');
let showTooltip = tank.showTooltip;
Enables or disables displaying of the units.
Set theshowUnit property.
<smart-tank show-unit></smart-tank>
Set theshowUnit property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.showUnit = false;
Get theshowUnit property.
const tank = document.querySelector('smart-tank');
let showUnit = tank.showUnit;
Determining how many significant digits are in a number. Applicable only whenscaleType is'integer'.
Set thesignificantDigits property.
<smart-tank significant-digits='1'></smart-tank>
Set thesignificantDigits property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.significantDigits = 2;
Get thesignificantDigits property.
const tank = document.querySelector('smart-tank');
let significantDigits = tank.significantDigits;
Sets or gets the element's visual theme.
Set thetheme property.
<smart-tank theme='material'></smart-tank>
Set thetheme property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.theme = 'material-purple';
Get thetheme property.
const tank = document.querySelector('smart-tank');
let theme = tank.theme;
Sets or gets the position of the thumb label.
Set thethumbLabelPosition property.
<smart-tank thumb-label-position='far'></smart-tank>
Set thethumbLabelPosition property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.thumbLabelPosition = 'near';
Get thethumbLabelPosition property.
const tank = document.querySelector('smart-tank');
let thumbLabelPosition = tank.thumbLabelPosition;
Sets or gets the position of the ticks in smartTank widget.
Set theticksPosition property.
<smart-tank ticks-position='track'></smart-tank>
Set theticksPosition property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.ticksPosition = 'scale';
Get theticksPosition property.
const tank = document.querySelector('smart-tank');
let ticksPosition = tank.ticksPosition;
Sets or gets the visibility of the ticks.
Set theticksVisibility property.
<smart-tank ticks-visibility='major'></smart-tank>
Set theticksVisibility property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.ticksVisibility = 'none';
Get theticksVisibility property.
const tank = document.querySelector('smart-tank');
let ticksVisibility = tank.ticksVisibility;
Sets or gets the position of the tooltip in smartTank widget.
Set thetooltipPosition property.
<smart-tank tooltip-position='far'></smart-tank>
Set thetooltipPosition property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.tooltipPosition = 'near';
Get thetooltipPosition property.
const tank = document.querySelector('smart-tank');
let tooltipPosition = tank.tooltipPosition;
Sets or gets if the element can be focused.
Set theunfocusable property.
<smart-tank unfocusable></smart-tank>
Set theunfocusable property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.unfocusable = false;
Get theunfocusable property.
const tank = document.querySelector('smart-tank');
let unfocusable = tank.unfocusable;
Sets or gets the name of unit used in smartTank widget.
Set theunit property.
<smart-tank unit='mm'></smart-tank>
Set theunit property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.unit = 'cm';
Get theunit property.
const tank = document.querySelector('smart-tank');
let unit = tank.unit;
Sets the value's validation by min/max. If'strict' is applied, the value is always validated by min and max. If'interaction' is applied, programmatic value changes are not coerced to min/max and if min/max are changed, resulting in the current value being out of range, the value is not coerced, and nochange event is fired.
Set thevalidation property.
<smart-tank validation='left'></smart-tank>
Set thevalidation property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.validation = 'right';
Get thevalidation property.
const tank = document.querySelector('smart-tank');
let validation = tank.validation;
Sets or gets the value of the smartTank widget.
Set thevalue property.
<smart-tank value='50'></smart-tank>
Set thevalue property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.value = 100;
Get thevalue property.
const tank = document.querySelector('smart-tank');
let value = tank.value;
Sets or gets the word length. Applicable only whenscaleType is'integer'.
Set thewordLength property.
<smart-tank word-length='int8'></smart-tank>
Set thewordLength property by using the HTML Element's instance.
const tank = document.querySelector('smart-tank');
tank.wordLength = 'int16';
Get thewordLength property.
const tank = document.querySelector('smart-tank');
let wordLength = tank.wordLength;
This event is triggered when the value of the tank is changed.
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 tank = document.querySelector('smart-tank');tank.addEventListener('change', function (event) {// event handling code goes here.})
Focuses the tank.
Invoke thefocus method.
const tank = document.querySelector('smart-tank');tank.focus();
Gets the optimal size of the widget.
Returnsobject
Invoke thegetOptimalSize method.
const tank = document.querySelector('smart-tank');const result = tank.getOptimalSize();
Get/set the value of the tank.
The value to be set. If no parameter is passed, returns the displayed value of the tank.
Returnsstring
Invoke theval method.
const tank = document.querySelector('smart-tank');const result = tank.val("10");
smartTank default width
smartTank default height
smartTank scale size
smartTank thumb width
smartTank thumb height
smartTank tooltip width
smartTank thumb height
smartTank tick size. Horizontal Tank tick height = Vertical Tank tick width.
smartTank minor tick size.
smartTank horizontal track min-height, vertical track min-width