Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Releases: micheltlutz/jumpper

0.0.9

16 Aug 18:25
45e0249
Compare
Choose a tag to compare

New Component Radio

Usage

let radio = Radio("option1", id: "option1", name: "option1")

0.0.8

06 Apr 20:02
f800d1f
Compare
Choose a tag to compare
  • Doctype
let doctype = Doctype()
doctype.getString() // or doctype.generate()
  • Body
let body = Body()
body.add(/* Any Element*/)
  • Head
let head = Head()
head.add(/* Any Element*/)
  • Html
let html = Html()
html.add(/* Any Element*/)
  • LinkStylesheet
let linkCssTag = LinkStylesheet("/styles/milligram.min.css")
  • Link
let linkTag = Link("/styles/milligram.min.css", attributes: ("rel", "stylesheet"))
  • Meta
let meta = Meta(("charset", "utf-8")))
  • Script
let script = Script()
script.add("var myJsVar = 1")

let script = Script(("src","myScript.js"))
  • Title
let pageTitle = Title("This is Page.")
  • Footer
let footer = Footer()
footer.add(/* Any Element*/)
  • Header
let header = Header()
header.add(/* Any Element*/)

0.0.7

22 Dec 13:54
bc514bf
Compare
Choose a tag to compare

New Composite class to group elements without tag

Fix init

Usage

let element = CompositeElements()
element.add("Hello, World!")
element.add(Label("My Label"))

// output: Hello, World!<label>My Label</label>

New Struct factory FactoryElements to remove duplicated functions

Usage

let element = FactoryElements.textWith("Hello, World!")

0.0.6

22 Dec 13:40
5c448b4
Compare
Choose a tag to compare

New Composite class to group elements without tag

Usage

let element = CompositeElements()
element.add("Hello, World!")
element.add(Label("My Label"))

// output: Hello, World!<label>My Label</label>

New Struct factory FactoryElements to remove duplicated functions

Usage

let element = FactoryElements.textWith("Hello, World!")

0.0.5

17 Oct 19:59
35a1882
Compare
Choose a tag to compare

Little fix change class Fieldset to public.

Usage Example:

let fieldset = Fieldset()

let labelName = Label("Name")
labelName.addAttribute(("for", "nameField"))
fieldset.add(labelName)

let inputName = InputText("", id: "nameField", placeholder: "Name")
fieldset.add(inputName)

let labelAge = Label("Age Range")
labelAge.addAttribute(("for", "ageRangeField"))
fieldset.add(labelAge)

0.0.4

22 Jul 22:32
3d14584
Compare
Choose a tag to compare
  • Chance access func add permission in ContainerElementBase.swift

0.0.3

22 Jul 22:10
5249df6
Compare
Choose a tag to compare

Update Package

  • Remove platform restrictions from Package.swift

0.0.2

22 Jul 12:20
b1dabfd
Compare
Choose a tag to compare

This Version add new unit tests, normalize components and add documentation.

0.0.1

11 Jul 15:37
75b3dad
Compare
Choose a tag to compare

Starter version