Components
    • Animation
    • Buttons
    • Charts
    • Common Utilities
    • Conversational UI
    • Data Query
    • Data Tools
    • Date Inputs
    • Date Math
    • Dialogs
    • Drawing
    • Dropdowns
    • Editor
    • Excel Export
    • File Saver
    • Form
    • Gantt
    • Gauges
    • Grid
    • Indicators
    • Inputs
    • Labels
    • Layout
    • ListBox
    • ListView
    • Notification
    • PDF Processing
    • PivotGrid
    • Popup
    • Progress Bars
    • Ripple
    • Scheduler
    • Sortable
    • Tooltip
    • TreeList
    • TreeView
    • Upload
    Sample Applications
    Styling & Themes
    Common Features
    Project Setup
    Changelog

Custom Attributes

The following code demonstrates how to add another attributes to any of the input components. The first step is to implement the ref of the component. Having the ref, use the setAttribute functionality on it and add the desired attribute and value.

The example includes adding form attribute in the Input, Rating and RangeSlider components.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?