Skip to main content

HTMLElementModel

export
type HTMLElementModel<
  T extends string,
  M extends HTMLContentModel
> = any

Fields

contentModel

contentModel: M;

getMixedUAStyles

getMixedUAStyles: function __type(
  tnode: TNodeDescriptor,
  element: Element
) : void
  | MixedStyleDeclaration
  | null
  | undefined | undefined;

getReactNativeProps

getReactNativeProps: function __type(
  tnode: ExtractTNodeFromType<TNodeType>,
  preGeneratedProps: ReactNativePropsSwitch | null,
  element: Element
) : void
  | ReactNativePropsDefinitions
  | null
  | undefined | undefined;

getUADerivedStyleFromAttributes

getUADerivedStyleFromAttributes: function __type(
  attributes: Record<string, string>,
  markers: Markers
) : MixedStyleDeclaration | null | undefined;

isOpaque

isOpaque: boolean;

isVoid

isVoid: boolean;

mixedUAStyles

mixedUAStyles?: MixedStyleDeclaration;

reactNativeProps

reactNativeProps?: ReactNativePropsDefinitions;

setMarkersForTNode

setMarkersForTNode?: SetMarkersForTNode;

tagName

tagName: T;

Methods

extend

function extend(
  merger: function __type(
    shape: HTMLElementModelShape<T, CM>
  ) : Partial<HTMLElementModelShape<T, CM>>
) : HTMLElementModel<T, CM>(
  shape: Partial<HTMLElementModelShape<T, CM>>
) : HTMLElementModel<T, CM>

Parameters

  • merger

isTranslatableBlock

function isTranslatableBlock() : boolean

isTranslatableTextual

function isTranslatableTextual() : boolean

fromCustomModel

static
function fromCustomModel(
  template: CustomElementModel<CustomTags, ContentModel>
) : HTMLElementModel<CustomTags, ContentModel>

Parameters

  • template

fromNativeModel

static
function fromNativeModel(
  nativeElementModel: NativeElementModel<TN, E>
) : HTMLElementModel<TN, mixed | block | textual | none>

Parameters

  • nativeElementModel