UIKit v0.1.0 UIKit View Source

Core UIKit wrapping code.

Link to this section Summary

Link to this section Functions

Link to this macro __using__(opts) View Source (macro)

Used to bring UIKit functionality into your view module.

Examples

use UIKit

Allows the insertion of custom attributes.

Examples

attr(id: "the-id", href="#")

Used to insert a custom class. or Taggart.

Examples

[class("my-special-class"), position(:bottom)]
Link to this macro class(p1, p2, p3) View Source (macro)
Link to this macro class(p1, p2, p3, p4) View Source (macro)
Link to this macro class(p1, p2, p3, p4, p5) View Source (macro)
Link to this macro class(p1, p2, p3, p4, p5, p6) View Source (macro)
Link to this macro class(p1, p2, p3, p4, p5, p6, p7) View Source (macro)
Link to this macro class(p1, p2, p3, p4, p5, p6, p7, p8) View Source (macro)
Link to this macro class(p1, p2, p3, p4, p5, p6, p7, p8, p9) View Source (macro)
Link to this macro class(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) View Source (macro)
Link to this macro defboolean(name, opts \\ []) View Source (macro)

Defines a new UIKit boolean-type style.

Examples

iex> defboolean :margin
Link to this macro defcomponent(name, opts \\ []) View Source (macro)

Defines a new UIKit component.

Examples

iex> defcomponent :section, tag: :span
Link to this macro defdata(name, opts \\ []) View Source (macro)

Defines a new UIKit data attribute.

Examples

iex> defdata :caption
Link to this macro defstyle(name, opts \\ []) View Source (macro)

Defines a new UIKit style.

Examples

iex> defstyle :width, styles: [:auto, :expand]
Link to this macro uk(tag, styles) View Source (macro)
Link to this macro uk(tag, styles, p2) View Source (macro)

Renders a tag without the need for defstyle or defcomponent or Taggart.

Examples

uk(:img, animation(:kenburns), transform_origin(:center_right), attr(src: "/images/dark.jpg", alt: "")))
Link to this macro uk(tag, p1, p2, p3) View Source (macro)
Link to this macro uk(tag, p1, p2, p3, p4) View Source (macro)
Link to this macro uk(tag, p1, p2, p3, p4, p5) View Source (macro)
Link to this macro uk(tag, p1, p2, p3, p4, p5, p6) View Source (macro)
Link to this macro uk(tag, p1, p2, p3, p4, p5, p6, p7) View Source (macro)
Link to this macro uk(tag, p1, p2, p3, p4, p5, p6, p7, p8) View Source (macro)
Link to this macro uk(tag, p1, p2, p3, p4, p5, p6, p7, p8, p9) View Source (macro)
Link to this macro uk(tag, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10) View Source (macro)
Link to this macro uk(tag, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, list) View Source (macro)