- tag(tagName, namespace?): ((virtualId?) => (<T>(...facts) => ((...children) => Readonly<{
children: readonly Dom<T>[];
descendantsCount: number;
facts: FactsOrganization<T>;
namespace: string;
tagName: string;
type: typeof tagSymbol;
virtualId?: string;
}>))) Parameters
tagName: string
namespace: string = ""
Returns ((virtualId?) => (<T>(...facts) => ((...children) => Readonly<{
children: readonly Dom<T>[];
descendantsCount: number;
facts: FactsOrganization<T>;
namespace: string;
tagName: string;
type: typeof tagSymbol;
virtualId?: string;
}>)))
The new tag object.
- (virtualId?): (<T>(...facts) => ((...children) => Readonly<{
children: readonly Dom<T>[];
descendantsCount: number;
facts: FactsOrganization<T>;
namespace: string;
tagName: string;
type: typeof tagSymbol;
virtualId?: string;
}>)) Parameters
Optional
virtualId: string
Returns (<T>(...facts) => ((...children) => Readonly<{
children: readonly Dom<T>[];
descendantsCount: number;
facts: FactsOrganization<T>;
namespace: string;
tagName: string;
type: typeof tagSymbol;
virtualId?: string;
}>))
- <T>(...facts): ((...children) => Readonly<{
children: readonly Dom<T>[];
descendantsCount: number;
facts: FactsOrganization<T>;
namespace: string;
tagName: string;
type: typeof tagSymbol;
virtualId?: string;
}>) Returns ((...children) => Readonly<{
children: readonly Dom<T>[];
descendantsCount: number;
facts: FactsOrganization<T>;
namespace: string;
tagName: string;
type: typeof tagSymbol;
virtualId?: string;
}>)
- (...children): Readonly<{
children: readonly Dom<T>[];
descendantsCount: number;
facts: FactsOrganization<T>;
namespace: string;
tagName: string;
type: typeof tagSymbol;
virtualId?: string;
}> Parameters
Rest
...children: Dom<T>[]
Returns Readonly<{
children: readonly Dom<T>[];
descendantsCount: number;
facts: FactsOrganization<T>;
namespace: string;
tagName: string;
type: typeof tagSymbol;
virtualId?: string;
}>
Creates a new tag object.