Skip to content
Snippets Groups Projects
Commit 2e48dd91 authored by rhenck's avatar rhenck
Browse files

[editor] Allow setting first and last as button actions

parent 0cc73a3a
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ export class ButtonElement extends UIElement implements FontElement, SurfaceUIEl
label: string = 'Knopf';
imageSrc: string | null = null;
borderRadius: number = 0;
action: null | 'previous' | 'next' | 'end' = null;
action: null | 'previous' | 'next' | 'first' | 'last' | 'end' = null;
fontColor: string = 'black';
font: string = 'Roboto';
......
......@@ -140,7 +140,9 @@
<mat-option *ngFor="let option of [{displayValue: 'keine', value: undefined},
{displayValue: 'Vorherige Seite', value: 'previous'},
{displayValue: 'Nächste Seite', value: 'next'},
{displayValue: 'Letzte Seite', value: 'end'}]"
{displayValue: 'Erste Seite', value: 'first'},
{displayValue: 'Letzte Seite', value: 'last'},
{displayValue: 'Beenden', value: 'end'}]"
[value]="option.value">
{{option.displayValue}}
</mat-option>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment