Skip to content

Releases: interaapps/jdom

3.1.4

06 Mar 15:03
Compare
Choose a tag to compare
Added typescript types

3.1.3

06 Mar 14:41
Compare
Choose a tag to compare
Added @Attribute & more

3.1.2

06 Mar 14:34
Compare
Choose a tag to compare
Added @Attribute & more

3.1.1

06 Mar 14:08
Compare
Choose a tag to compare
Added @Attribute & more

3.1.0

06 Mar 00:33
Compare
Choose a tag to compare

Typescript Class-Component

import { html, JDOMComponent } from 'jdomjs' 
import { CustomElement, State } from "jdomjs/decorator.ts";

@CustomElement('example-component')
class ExampleComponent extends JDOMComponent {
    @State()
    private name: Hook<String> = 'John'
  
    @Computed(s => [s.name])
    private greetings() {
        return comp`Hello ${this.name}`
    }
  
    render() {
          return html`
            <input :bind=${this.name}>
            <h1>${this.greetings}</h1>
          `
    }
}

Javascript Class-Component

import { html, JDOMComponent, $r } from 'jdomjs'

class ExampleComponent extends JDOMComponent {
    private name = new Hook('John')
  
    private greetings() {
        return comp`Hello ${this.name}`
    }
  
    render() {
          return html`
            <input :bind=${this.name}>
            <h1>${this.greetings()}</h1>
          `
    }
}

$r('example-component', ExampleComponent)

3.0.4

05 Mar 14:27
Compare
Choose a tag to compare
Added event . helping operator

3.0.3

04 Mar 22:15
Compare
Choose a tag to compare
Fixed some bugs

3.0.2

04 Mar 14:32
Compare
Choose a tag to compare
Added more Support for more complex HTML like with script tags

3.0.1

03 Mar 21:12
Compare
Choose a tag to compare
Changed version

3.0.0

02 Mar 15:32
Compare
Choose a tag to compare
const count = state(0)

$(document).append(html`
     <button @click=${count.value++}>The count is ${count}</button>
`)