[Control] span

Part of: mobl

Arguments:

  • style : Style the style to style this span with
  • onclick : Callback = null (optional) event to be triggered when the user taps this element
  • onswipe : Callback = null (optional) callback to be called when the span is swiped.

A styled inline-block (similar to <span> in HTML). Useful for styling a snippet of text (e.g. a few words).

Example:

style bigAndBlueStyle {
  font-size: 40px;
  color: blue;
}
screen root() {
  span(bigAndBlue) {
    "I am big and blue"
  }
}
mobl/span.txt · Last modified: 2013/10/01 02:28 (external edit)