Module: ko/ui/link

ko/ui link element

Create a custom link that you can append to any module:ko/ui/container~Model and have it open in a browser. This module inherits methods and properties from the module it extends.

Example

var link = require("ko/ui/link").create("Komodo IDE",{attributes:{href:"http://www.komodoide.com"}});
panel = require("ko/ui/panel").create()
panel.addRow(link);
panel.open();
Author:
  • NathanR, CareyH
License:
  • Mozilla Public License v. 2.0

Extends

Classes

Model()

Methods


require("ko/ui/link").openBrowser()

Open the link in a browser programmatically


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

Create a new link UI element

Parameters:
Name Type Argument Description
link String

Link to be opened

options object <optional>

An object containing attributes and options Must have an href attribute and it must include the protocol. ie. http://.

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