Als Nächstes kommt die Button-Komponente.
Klickt man in einem GUI-Formular eine Button-Komponente an so wird die zum Button gehörende Ereignismethode ausgeführt.
If you click on a button component in a GUI form, the event method belonging to the button will be executed.
Jede Button-Komponente erhält automatisch eine Ereignismethode für das Anklicken des Buttons. Beispiel
Each button component automatically receives an event method for clicking the button. Example
Et voilá: Nachdem der oberhalb erklärte $ kss-node Befehl erneut ausgeführt wurde, beinhaltet der Styleguide jetzt einen neuen Bereich Buttons, der Previews für alle mit Hilfe der Modifier festgelegten Varianten der Button-Komponente bereitstellt.
Et voilá: After running the '$ kss-node' command explained above again, the styleguide now contains a new Buttons section, which provides previews for all Modifier variants of the button component.
Der "Kaufen" Button wird auch im Homepage-Baukasten mit der Button-Komponente hinzugefügt.
The "Buy it" button is also added in Website Builder with the button component.
Der Nachteil dieses Ansatzes ist vor allem aufgrund der Tatsache, dass wir hatten eine extra Klasse für die button-Komponente.
The downside of this approach is mainly due to the fact that we had to add an extra class to the button component.
Wichtig ist jetzt das korrekte Einstellen der Button-Komponente.
Ziehe eine Edit- und eine Button-Komponente auf das Formular.
Die Button-Komponente bekommt die Caption "Senden".
The button gets the caption "Send".