Class: Tag

Iroha. Tag

new Tag()

Source:

Methods

append(arg) → {Iroha.Tag}

append child instance.
Parameters:
Name Type Description
arg Iroha.Tag | string instance to append
Source:
Returns:
このインスタンス自身
Type
Iroha.Tag

attr(name, value) → {string}

属性値を設定する/読み出す
Parameters:
Name Type Argument Description
name string 対象とする属性の名前
value string <optional>
その属性に値を設定する場合は、その値。(無指定時は属性値の読み出しとなる)
Source:
Returns:
指定された属性の現在の値、または今セットした値そのもの、
Type
string

init(tagName, attrs) → {Iroha.Tag}

initialize
Parameters:
Name Type Argument Description
tagName string element name to create
attrs Object <optional>
associative array of attributes { name1 : value1, name2 : value2 ... }
Source:
Returns:
このインスタンス自身
Type
Iroha.Tag

toString(debug) → {string}

output instance data as tag string. typically to use document.write().
Parameters:
Name Type Argument Default Description
debug boolean <optional>
false debug mode - escaped output
Source:
Returns:
HTML tag string
Type
string