moby
namespace Dom
since 0.1.0-alpha.1linux
Types
- ActionRegistry
- AnchorEdge
- Bar
- Binding
- Document
- DomNode
- DomNodeList
- DomParser
- DomRegistry
- DomTplNode
- DomXAttr
- DomXEmitter
- DomXNode
- DomXParser
- FlexContainer
- LeafTextRun
- MobyApp
- PopoverHost
- Position
- PositionMethod
- RuntimeHole
- SelChain
- Selector
- SelPart
Constants and globals
currentDocument_
Document | None currentDocument_DOM_ELEMENT
const int DOM_ELEMENT = 0DOM_HOLE
const int DOM_HOLE = 2DOM_TEXT
const int DOM_TEXT = 1registry_
DomRegistry | None registry_Functions
__resetDocument
__resetDocument() -> void__setCurrentDocument
__setCurrentDocument(Document d) -> void__setRegistry
__setRegistry(DomRegistry r) -> voidabsByZOf
absByZOf(Array<IComponent> kids) -> Array<IComponent>absOf
absOf(Array<IComponent> kids) -> Array<IComponent>alignFromName
alignFromName(string v) -> AlignapplyAttr
applyAttr(IComponent c, Document doc, string tag, string name, string value) -> voidarrangeAbs
arrangeAbs(Array<IComponent> kids) -> voidbindActionItem
bindActionItem(IComponent item, string key) -> voidbindLeafText
bindLeafText(Document doc, IComponent leaf, Array<bool> isHole, Array<string> pieces) -> voidbindNode
bindNode(Document doc, IComponent node, string sourceText, () => string getter, (string) => void apply) -> voidbindRuntimeText
bindRuntimeText(Document doc, IComponent textNode, string key) -> voidbindText
bindText(Document doc, IComponent textNode, string sourceText, () => string getter) -> voidbuildElement
buildElement(DomTplNode node, Document doc) -> IComponentbuildFragment
buildFragment(Array<DomTplNode> nodes, Document doc) -> Array<IComponent>buildMarkup
buildMarkup(string markup, Document doc) -> IComponentbuildMarkupFragment
buildMarkupFragment(string markup, Document doc) -> Array<IComponent>classBaseKey
classBaseKey(string key, string cls) -> stringclassFullKey
classFullKey(string key, string cls) -> stringcompileSelector
compileSelector(string src) -> SelectordockFromName
dockFromName(string v) -> Dockdocument
document() -> DocumenteffectiveActionKey
effectiveActionKey(IComponent node, Document doc, string label) -> string | NoneexpandDom
expandDom(string payload) -> stringfireAction
fireAction(IComponent from, string name) -> boolfireActivate
fireActivate(IComponent node) -> voidflowOf
flowOf(Array<IComponent> kids) -> Array<IComponent>greyBoundItem
greyBoundItem(IComponent item, bool on) -> voidintAttr
intAttr(string name, string v) -> intisAbsComp
isAbsComp(IComponent c) -> boolisBareId
isBareId(Selector sel) -> boolisNameChar
isNameChar(char c) -> booljoinLabel
joinLabel(string acc, string piece) -> stringmatchChainAt
matchChainAt(SelChain chain, IComponent node, Document doc) -> boolmatchPart
matchPart(SelPart p, IComponent c, Document doc) -> boolnormalizeHotkey
normalizeHotkey(string spec) -> stringparseMarkup
parseMarkup(string src) -> Array<DomTplNode>queryAll
queryAll(Document doc, IComponent root, Selector sel) -> Array<IComponent>queryAllStr
queryAllStr(Document doc, IComponent root, string selText) -> Array<IComponent>queryOrNoneStr
queryOrNoneStr(Document doc, IComponent root, string selText) -> IComponent | NonequeryStr
queryStr(Document doc, IComponent root, string selText) -> IComponentqueryWalk
queryWalk(Document doc, IComponent node, Selector sel, Array<IComponent> acc) -> Array<IComponent>registerTag
registerTag(string name, () => IComponent factory, (IComponent) => bool matcher, (IComponent, string, string) => bool applier) -> voidregistry
registry() -> DomRegistryregistryOf
registryOf(Document doc, IComponent c) -> ActionRegistry | NoneresolveBindRegistry
resolveBindRegistry(Document doc, IComponent from, string key) -> ActionRegistry | NonesetNodeText
setNodeText(IComponent c, string t) -> voidslug
slug(string label) -> stringtext
text(string v) -> stringtext(string | None v) -> stringtext(int v) -> stringtext(float v) -> stringtext(bool v) -> stringtext(char v) -> stringwireActionNode
wireActionNode(IComponent node, Document doc) -> voidwireActionsInSubtree
wireActionsInSubtree(IComponent root, Document doc) -> voidwrapFromName
wrapFromName(string v) -> OverflowzOfComp
zOfComp(IComponent c) -> int