We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01e0d34 commit 700bd57Copy full SHA for 700bd57
1 file changed
ui/src/app/components/options/options.component.ts
@@ -7,6 +7,7 @@ import { ApplicationService } from '../../services/app.service'
7
interface BaseOptions {
8
type: string
9
isEnabled?: () => boolean
10
+ style?: { [style: string]: string | number }
11
}
12
13
export interface ButtonOption extends BaseOptions {
@@ -136,7 +137,7 @@ export class OptionsComponent {
136
137
) {}
138
139
getOptionStyle (option: Option) {
- let style: any = {}
140
+ let style = option.style || {}
141
if (option.type === 'button') {
142
style.width = '100%'
143
0 commit comments