dwww Home | Show directory contents | Find package

<chapter id="scripting-api">
<title
>De Scripts-API</title>

<sect1 id="include-scripting-interface">
<title
>Interfaces voor scripts</title>
<sect2>
<title
>Console Object</title>
<para
>Met de console-object kunt u berichten van wisselend belang naar een logboek wegschrijven. </para>
<para
>Console is geen constructor. Alle properties en methods van Console kunt u aanroepen met console als een object, zonder die aan te maken. </para>
</sect2>
<sect2>
<title
>Syntaxis</title>
<programlisting
>Console.log("Dit is een programmabericht."); // drukt een programmabericht af
Console.debug("Een debugbericht."); // drukt een debugbericht af
</programlisting>
</sect2>
<sect2>
<title
>Methods van Console Object</title>
<sect3>
<title
>log()</title>
<para
>Afdrukken van het gegeven bericht van normaal belang. </para>
<funcsynopsis>
<funcprototype
><funcdef
>void <function
>log</function
></funcdef
> <paramdef
>string <parameter
>bericht</parameter
></paramdef
> </funcprototype>
</funcsynopsis>
</sect3>
<sect3>
<title
>debuggen()</title>
<para
>Afdrukken van het gegeven debugbericht. </para>
<funcsynopsis>
<funcprototype
><funcdef
>void <function
>debug</function
></funcdef
> <paramdef
>string <parameter
>bericht</parameter
></paramdef
> </funcprototype>
</funcsynopsis>
</sect3>
<sect3>
<title
>error()</title>
<para
>Afdrukken van het gegeven zeer ernstige foutbericht.  </para>
<funcsynopsis>
<funcprototype
><funcdef
>void <function
>error</function
></funcdef
> <paramdef
>string <parameter
>bericht</parameter
></paramdef
> </funcprototype>
</funcsynopsis>
</sect3>
</sect2>
</sect1>
</chapter>

Generated by dwww version 1.15 on Thu May 23 17:25:58 CEST 2024.