Module: ko/ui/span

ko/ui span element

This module inherits methods and properties from the module it extends. Wrap text in a span tag.

Example

var span = require("ko/ui/span").create();
Author:
  • NathanR, CareyH
License:
  • Mozilla Public License v. 2.0

Extends

Classes

Model()

Methods


require("ko/ui/span").create( [String] [, options])

Create a new span UI element

Parameters:
Name Type Argument Description
String value <optional>

Text to be placed in span

options object <optional>

An object containing attributes and options

Returns:
Type
module:ko/ui/span~Model