dagon
namespace Dom
since 0.1.0-alpha.1linux
Types
- ActionRegistry
- AnchorEdge
- Binding
- DagonDomException
- Document
- DomContainer
- DomNode
- DomNodeList
- DomParser
- DomRegistry
- DomTplNode
- DomXAttr
- DomXEmitter
- DomXNode
- DomXParser
- LeafTextRun
- Position
- PositionMethod
- RuntimeHole
- SelChain
- Selector
- SelPart
Constants and globals
activeDocument_
Document | None activeDocument_activeWindow_
Window | None activeWindow_DOM_ELEMENT
const int DOM_ELEMENT = 0DOM_HOLE
const int DOM_HOLE = 2DOM_TEXT
const int DOM_TEXT = 1registry_
DomRegistry | None registry_Functions
__dagonBuild
__dagonBuild(() => IComponent thunk) -> IComponent__dagonSetActiveDocument
__setRegistry
__setRegistry(DomRegistry r) -> voidactiveDocument
activeDocument() -> DocumentactiveWindow
activeWindow() -> WindowalignFromName
alignFromName(string v) -> AlignapplyAttr
applyAttr(IComponent c, Document doc, string tag, string name, string value) -> voidapplyFlexAttr
applyFlexAttr(IComponent c, int f) -> voidaxisFromName
axisFromName(string v) -> AxisbindActionItem
bindActionItem(Document doc, 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) -> voidbuild
build(string markup) -> IComponentbuildElement
buildElement(DomTplNode node, Document doc) -> IComponentbuildElementInner
buildElementInner(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>buildRoot
buildRoot(DomTplNode node, Document activeDoc) -> IComponentcompileSelector
compileSelector(string src) -> SelectordockFromName
dockFromName(string v) -> DockdocumentFor
documentFor(IComponent node) -> DocumentdomDockContainer
domDockContainer() -> IComponentdomFlexContainer
domFlexContainer(Axis a) -> IComponentdomStackContainer
domStackContainer() -> IComponenteffectiveActionKey
effectiveActionKey(IComponent node, Document doc, string label) -> string | NoneexpandDom
expandDom(string payload) -> stringfireAction
fireAction(IComponent from, string name) -> boolgreyBoundItem
greyBoundItem(IComponent item, bool on) -> voidintAttr
intAttr(string name, string v) -> intisBareId
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) -> boolparseMarkup
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 | NonerequireDagonApp
requireDagonApp() -> DagonAppresolveBindRegistry
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) -> void