Home    Reference > E Views > bodyrec
prev next

Description

View of xdom:element that treats xdom:elements directly within the body as a record. The tag of those elements becomes the record element name.

View bodyrec

@x:view bodyrec

@x:view @x:func sys:Is(v~boolean)~boolean
@x:self @x:func sys:Dot[name~string]

View Function sys:Is

@x:func sys:Is(v~boolean)~boolean
v value to test

Semantics

The result is v
?xdom:element.

LHS/RHS Self Function sys:Dot[ ]

@x:func sys:Dot[name~string]
name the tag of an element directly within the body to be selected.

Semantics

The result is the body component with the specified tag. On the rhs, if the body component does not exist the result is
null. On the lhs, if value being assigned is null, any element with tag name is removed from the record. On the lhs, if the named element does not exist, it is added.