DeclareSignals

abstract
class DeclareSignals : Element(
Element
names...
) if (
is(Element : HTMLElement) &&
names.length >= 1
) {}

Constructors

this
this(T args)
Undocumented in source.

Members

Functions

doJSInitialize
void doJSInitialize(bool b)
Undocumented in source. Be warned that the author may not have intended to support it.
onLoad
void onLoad(bool init)
Undocumented in source. Be warned that the author may not have intended to support it.
onStart
void onStart(HTMLPage page)
Undocumented in source. Be warned that the author may not have intended to support it.
stopPropergation
void stopPropergation(bool b)
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

class MyButton : DeclareSignals!(HTMLElement, "onClick")
{
    this(string id)
    {
        super(id, true);
    }


    override
    void onClick(WeakRef!(JSArrayCpp) args)
    {
        writeln("OK");
    }
}

Meta