hara.model.spec-js.qml

classify

added in 4.0

(classify val)

classifies the data structure

classify-container

added in 4.0

(classify-container [tag props & children] classify-fn)

classifies a container

classify-props

added in 4.0

(classify-props props classify-fn)

classifies props

emit-container

added in 4.0

(emit-container {:keys [title props children]} grammar mopts)

emits a container string

emit-node

added in 4.0

(emit-node {:keys [type value], :as node} grammar mopts)

emits either container or value string

emit-qml

added in 4.0

(emit-qml form grammar mopts)

emits a qml string

(l/with:emit (qml/emit-qml [:qml/Window #{[:a 1 :b :qml/Item]} ’(fn hello [](+ 1 2))] js/+grammar+ {})) (std.string/| “Window {” " a: 1" " b: Item {" " " " }" " hello(){" " 1 + 2;" " }" “}”)

emit-value

added in 4.0

(emit-value {:keys [value]} grammar mopts)

emits a value string

qml-container?

added in 4.0

(qml-container? item)

checks if item is a qml container

qml-props?

added in 4.0

(qml-props? item)

checks if data is a qml prop