Skip to content

Commit c456a6b

Browse files
authored
feat(switch): onBackgroundColor property
1 parent bfb4ac8 commit c456a6b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/switch/index-common.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ export abstract class SwitchBase extends NSSwitch {
1414
// this.busy = false;
1515
// }
1616
}
17-
17+
export const onBackgroundColorProperty = new Property<SwitchBase, Color>({
18+
name: 'onBackgroundColor',
19+
equalityComparer: Color.equals,
20+
valueConverter: v => new Color(v),
21+
});
22+
onBackgroundColorProperty.register(SwitchBase);
1823
// export const progressColorProperty = new CssProperty<Style, Color>({
1924
// cssName: 'progress-color',
2025
// name: 'progressColor',

0 commit comments

Comments
 (0)