Sign up (with export icon)

ViewElementDefinition

Api-typedef icon typedef

A plain object that describes a view element or element name.

Elements without attributes can be given simply as a string:

const viewDefinition = 'p';
Copy code

Which will be treated as:

const viewDefinition = {
	name: 'p'
};
Copy code