Vue ValidationGroup Props
An object defining configuration options for the ValidationGroup widget.
elementAttr
Specifies the attributes to be attached to the widget's root element.
jQuery
$(function(){
    $("#validationGroupContainer").dxValidationGroup({
        // ...
        elementAttr: {
            id: "elementId",
            class: "class-name"
        }
    });
});Angular
<dx-validation-group ...
    [elementAttr]="{ id: 'elementId', class: 'class-name' }">
</dx-validation-group>
import { DxValidationGroupModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
    imports: [
        // ...
        DxValidationGroupModule
    ],
    // ...
})ASP.NET MVC Control
@(Html.DevExtreme().ValidationGroup()
    .ElementAttr("class", "class-name")
    // ===== or =====
    .ElementAttr(new {
        @id = "elementId",
        @class = "class-name"
    })
    // ===== or =====
    .ElementAttr(new Dictionary<string, object>() {
        { "id", "elementId" },
        { "class", "class-name" }
    })
)@(Html.DevExtreme().ValidationGroup() _
    .ElementAttr("class", "class-name")
    ' ===== or =====
    .ElementAttr(New With {
        .id = "elementId",
        .class = "class-name"
    })
    ' ===== or =====
    .ElementAttr(New Dictionary(Of String, Object) From {
        { "id", "elementId" },
        { "class", "class-name" }
    })
)height
Specifies the widget's height.
This option accepts a value of one of the following types:
- Number 
 The height in pixels.
- String 
 A CSS-accepted measurement of height. For example,- "55px",- "80%",- "auto",- "inherit".
- Function 
 A function returning either of the above. For example:JavaScript- height: function() { return window.innerHeight / 1.5; }
onDisposing
A function that is executed before the widget is disposed of.
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only if you use Knockout. | 
onInitialized
A function that is executed only once, after the widget is initialized.
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | 
You cannot access widget elements in this function because it is executed before they are ready.
onOptionChanged
A function that is executed after a widget option is changed.
Information about the event.
| Name | Type | Description | 
|---|---|---|
| name | The option's short name. | |
| model | The model data. Available only if you use Knockout. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The widget's instance. | |
| fullName | The option's full name. | |
| value | any | The option's new value. | 
width
Specifies the widget's width.
This option accepts a value of one of the following types:
- Number 
 The width in pixels.
- String 
 A CSS-accepted measurement of width. For example,- "55px",- "80%",- "auto",- "inherit".
- Function 
 A function returning either of the above. For example:JavaScript- width: function() { return window.innerWidth / 1.5; }
If you have technical questions, please create a support ticket in the DevExpress Support Center.