---
title: TVViewElement
framework: tvmlkit
role: symbol
role_heading: Class
path: tvmlkit/tvviewelement
---

# TVViewElement

A representation of a read-only DOM node.

## Declaration

```swift
class TVViewElement
```

## Overview

Overview The TVViewElement model object is traversed by the TVInterfaceFactory factory to construct views and view controllers, and to render templates. Views and view controllers should use the available dispatch APIs to send user events to JavaScript.

## Topics

### Inspecting a View Element

- [autoHighlightIdentifier](tvmlkit/tvviewelement/autohighlightidentifier.md)
- [attributes](tvmlkit/tvviewelement/attributes.md)
- [children](tvmlkit/tvviewelement/children.md)
- [isDisabled](tvmlkit/tvviewelement/isdisabled.md)
- [identifier](tvmlkit/tvviewelement/identifier.md)
- [name](tvmlkit/tvviewelement/name.md)
- [parent](tvmlkit/tvviewelement/parent.md)
- [style](tvmlkit/tvviewelement/style.md)
- [updateType](tvmlkit/tvviewelement/updatetype.md)
- [TVElementUpdateType](tvmlkit/tvelementupdatetype.md)

### Dispatching Events

- [dispatchEvent(type:canBubble:cancellable:extraInfo:completion:)](tvmlkit/tvviewelement/dispatchevent(type:canbubble:cancellable:extrainfo:completion:).md)
- [TVElementEventType](tvmlkit/tvelementeventtype.md)
- [dispatchEvent(name:canBubble:cancellable:extraInfo:completion:)](tvmlkit/tvviewelement/dispatchevent(name:canbubble:cancellable:extrainfo:completion:).md)

### Resetting a Property’s Value

- [resetProperty(_:)](tvmlkit/tvviewelement/resetproperty(_:).md)
- [TVElementResettableProperty](tvmlkit/tvelementresettableproperty.md)

### Instance Properties

- [elementData](tvmlkit/tvviewelement/elementdata.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Inherited By

- [TVImageElement](tvmlkit/tvimageelement.md)
- [TVTextElement](tvmlkit/tvtextelement.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Views and View Controllers

- [TVInterfaceCreating](tvmlkit/tvinterfacecreating.md)
- [TVInterfaceFactory](tvmlkit/tvinterfacefactory.md)
- [TVBrowserViewController](tvmlkit/tvbrowserviewcontroller.md)
- [TVDocumentViewController](tvmlkit/tvdocumentviewcontroller.md)
