|
|
|
@ -20,6 +20,8 @@ import { randomId, Facet, Observe, FlexMap, Value, Record } from "@syndicate-lan
|
|
|
|
|
|
|
|
|
|
import * as P from "./protocol";
|
|
|
|
|
export * from "./protocol";
|
|
|
|
|
|
|
|
|
|
import { HtmlFragments } from "./html";
|
|
|
|
|
export * from "./html";
|
|
|
|
|
|
|
|
|
|
boot {
|
|
|
|
@ -484,8 +486,11 @@ export class Anchor {
|
|
|
|
|
return new Anchor({ fragmentId: this.fragmentId + '__' + extn });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
html(selector: string, html: string, orderBy: NodeOrderKey = ''): Record {
|
|
|
|
|
return P.UIFragment(this.fragmentId, selector, html, orderBy);
|
|
|
|
|
html(selector: string, html: HtmlFragments | string, orderBy: NodeOrderKey = ''): Record {
|
|
|
|
|
return P.UIFragment(this.fragmentId,
|
|
|
|
|
selector,
|
|
|
|
|
typeof html === 'string' ? html : html.toString(),
|
|
|
|
|
orderBy);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|