Constructor

The code inside this element is called when the binding is attached to an element. You can use this to initialize the content the binding uses. The constructor should be placed inside the implementation element.

More information about constructor

バインディングが要素に結びつけられたとき、この要素の内側にあるコードが呼ばれる。バインディングが使用する内容を初期化するのに、この要素を用いることができる。constructor 要素は implementation 要素内に置く必要がある。

constructor の追加情報

属性:

action id

属性:

action

The code contained in the action value is executed for the constructor. Alternatively, you can put the code inside the constructor element.

action の値とされるコードが、 constructor に対して実行される。 別の方法として、 constructor 要素の内側にコードを入れることができる。

id

Type: element id, must be unique in the window

A unique identifier so that you can identify the constructor with. You can use this as a parameter to getElementById and other DOM functions and to reference the element in style sheets.

型 : 要素 id。ウィンドウ内で一意でなければならない。

constructor を識別できるユニークな識別子。getElementById や他の DOM 関数へのパラメータとして、またスタイルシートの要素への参照として使用することができる。


Copyright (C) 1999 - 2004 XulPlanet.com