1
1
mirror of https://github.com/bitgapp/eqMac.git synced 2024-11-22 22:32:17 +03:00

added value screen option to Options

This commit is contained in:
Nodeful 2021-03-17 17:09:58 +02:00
parent 2053a87bb4
commit c14eca1eb5
2 changed files with 15 additions and 0 deletions

View File

@ -97,6 +97,14 @@
(userChangedValue)="option.userChangedValue && option.userChangedValue($event)"
(stickedToMiddle)="option.stickedToMiddle && option.stickedToMiddle()"
></eqm-skeuomorph-slider>
<!-- Value Screen -->
<eqm-value-screen *ngIf="option.type === 'value-screen'"
[disabled]="!!option.isEnabled && option.isEnabled() === false"
(click)="option.clicked && option.clicked()"
>
{{option.value}}
</eqm-value-screen>
</div>
</div>
</div>

View File

@ -108,9 +108,16 @@ export interface SkeuomorphSliderOption extends SliderOption {
userChangedValue?: (event: SkeuomorphSliderValueChangedEvent) => any
}
export interface ValueScreenOption extends BaseOptions {
type: 'value-screen'
value: string
clicked?: () => any
}
export type Option = ButtonOption | CheckboxOption | SelectOption
| DividerOption | LabelOption | HTMLOption | DropdownOption
| BreadcrumbsOption | InputOption | FlatSliderOption | SkeuomorphSliderOption
| ValueScreenOption
export type Options = Option[][]
@Component({