Class

TVViewElement

A representation of a read-only DOM node.

Declaration

@interface TVViewElement : NSObject

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

A string identifying the element that is initially in focus.

attributes

The attributes associated with a view element.

childViewElements

An array containing the child elements of the element currently being inspected.

disabled

Boolean value indicating whether the current element being inspected is disabled.

elementIdentifier

A string containing the unique identifier for an element.

elementName

A string containing the element’s name.

parentViewElement

The parent of the current node.

style

The style applied to an element.

updateType

The value that describes any changes to the DOM tree after it has been reparsed.

TVElementUpdateType

Describes any changes to the DOM tree after it has been reparsed.

Dispatching Events

- dispatchEventOfType:canBubble:cancellable:extraInfo:completion:

Dispatches an event of a specific type to the JavaScript file.

TVElementEventType

The type of event that has been dispatched.

Resetting a Property’s Value

- resetProperty:

Resets the property to its default value.

TVElementResettableProperty

The types of properties that can be reset to their default values.

Instance Properties

Relationships

Inherits From

Conforms To

See Also

Views and View Controllers

TVInterfaceCreating

A protocol that defines methods used to create views and view controllers.

TVInterfaceFactory

A factory for the creation of views and view controllers.

TVBrowserViewController

A view controller that presents content in a browsable, full-screen format.

Beta
TVDocumentViewController

A view controller that represents a TVMLKit document.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software