ToggleModule
From MapbenderWiki
User: Uli Rothstein (Module maintainer)
Contents |
Description
english
This modul enables you to define a function, that should be active when you open a gui. The example below activates the function showCoords when starting the gui. For this purpose the function call must be inserted in the field Target. In this case it is init_mod_showCoords_div from the field Attributes of the button showCoords.
Note:
From Mapbender V. 2.7.1+ you didn't have to set the functionCall under the target field,
rather the id of the module you want to activate.
So if you want to activate pan functionality to your application set it to "pan1"
deutsch
Mit diesem Modul kann eine Funktion bestimmt werden, die beim Start der GUI aktiviert sein soll. Im unten stehenden Beispiel wird die Koordinatenanzeige beim Start der GUI bereits aktiviert. Dazu trägt man in das Feld Target den Funktionsaufruf aus dem Feld Attributes des zu aktivierenden Buttons ein, in diesem Fall also init_mod_showCoords_div.
Achtung:
Ab Mapbender Version 2.7.1 wird unter dem Target Feld nicht mehr der Funktionsaufruf,
sondern die ID des entsprechenden Moduls eingetragen.
Zum aktivieren der "verschiebeFunktionalität" also "pan1".
Files
For this module the following files are required / Für dieses Modul werden die folgenden Dateien benötigt:
SQL (MB <2.7)
Use this sql statement to insert this module in the corresponding gui / Mit diesem SQL kann das Modul in die entsprechende GUI eingefügen werden:
SQL (MB >=2.7.1)
In this Example pan1
