Next comes the button component.
If you click on a button component in a GUI form, the event method belonging to the button will be executed.
Klickt man in einem GUI-Formular eine Button-Komponente an so wird die zum Button gehörende Ereignismethode ausgeführt.
The downside of this approach is mainly due to the fact that we had to add an extra class to the button component.
Der Nachteil dieses Ansatzes ist vor allem aufgrund der Tatsache, dass wir hatten eine extra Klasse für die button-Komponente.
Each button component automatically receives an event method for clicking the button. Example
Jede Button-Komponente erhält automatisch eine Ereignismethode für das Anklicken des Buttons. Beispiel
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.
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.
The "Buy it" button is also added in Website Builder with the button component.
Der "Kaufen" Button wird auch im Homepage-Baukasten mit der Button-Komponente hinzugefügt.
Now it's important to set up the Button component correctly.
Wichtig ist jetzt das korrekte Einstellen der Button-Komponente.
From the sidebar, drag-and-drop a button component to the parent of the panel.
Ziehen Sie eine Schaltflächenkomponente per Drag&Drop aus der Randleiste in das übergeordnete Element des Bereichs.
If you need to use multiple buttons, rather than editing each button from scratch, you can duplicate the Button component using the contextual toolbar.
Wenn Sie mehrere Schaltflächen benötigen, müssen Sie nicht jede einzelne neu erstellen, sondern können die Komponente Schaltfläche in der dedizierten Symbolleiste duplizieren.
Select a Text or Button component in your workspace.
You can access the Global styling from the styling toolbar of the Text and Button component.
Sie können die Globalen Formatierungen aus der Toolbar der Text- oder Button Komponente erreichen.
For example, you could attach a Go To Web Page behavior to a Button component that opens a URL in a web browser when the button is clicked without writing any ActionScript code.
Beispielsweise könnten Sie einer Schaltflächen-Komponente das Verhalten „Gehe zu Webseite" zuweisen. Ein Klick auf diese Schaltfläche kann eine URL in einem Webbrowser öffnen, ohne dass dazu ActionScript-Code geschrieben werden muss.
Double click the Button component twice in the Components panel to create two instances on stage and place the buttons.
Doppelklicken Sie im Bedienfeld „Komponenten" zweimal auf die Komponente „Schaltfläche", um zwei Instanzen auf der Bühne zu erstellen und die Schaltflächen zu platzieren.