mirror of
https://github.com/google/blockly.git
synced 2026-01-09 18:10:08 +01:00
Add new fields to toolbarButtonConfig.
This commit is contained in:
@@ -45,7 +45,9 @@ blocklyApp.WorkspaceComponent = ng.core
|
||||
<div class="blocklyToolbarColumn">
|
||||
<div id="blockly-workspace-toolbar" (keydown)="onWorkspaceToolbarKeypress($event)">
|
||||
<span *ngFor="#buttonConfig of toolbarButtonConfig">
|
||||
<button (click)="buttonConfig.action()"
|
||||
<button *ngIf="!buttonConfig.isHidden()"
|
||||
(click)="buttonConfig.action()"
|
||||
[attr.aria-describedby]="buttonConfig.ariaDescribedBy"
|
||||
class="blocklyTree blocklyWorkspaceToolbarButton">
|
||||
{{buttonConfig.text}}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user