Skip to content

Commit 700bd57

Browse files
committed
added optional style object to Option
1 parent 01e0d34 commit 700bd57

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ui/src/app/components/options/options.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ApplicationService } from '../../services/app.service'
77
interface BaseOptions {
88
type: string
99
isEnabled?: () => boolean
10+
style?: { [style: string]: string | number }
1011
}
1112

1213
export interface ButtonOption extends BaseOptions {
@@ -136,7 +137,7 @@ export class OptionsComponent {
136137
) {}
137138

138139
getOptionStyle (option: Option) {
139-
let style: any = {}
140+
let style = option.style || {}
140141
if (option.type === 'button') {
141142
style.width = '100%'
142143
}

0 commit comments

Comments
 (0)