MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / setColorDialogProps

Function setColorDialogProps

src/components/ColorDialog/RNColorDialog.ts:14–28  ·  view source on GitHub ↗
(widget: RNColorDialog, newProps: ColorDialogProps, oldProps: ColorDialogProps)

Source from the content-addressed store, hash-verified

12}
13
14function setColorDialogProps(widget: RNColorDialog, newProps: ColorDialogProps, oldProps: ColorDialogProps) {
15 const setter: ColorDialogProps = {
16 set currentColor(currentColor: QColor) {
17 widget.setCurrentColor(currentColor);
18 },
19 set option({ option, on }: DialogOption<ColorDialogOption>) {
20 widget.setOption(option, on);
21 },
22 set options(options: ColorDialogOption) {
23 widget.setOptions(options);
24 },
25 };
26 Object.assign(setter, newProps);
27 setDialogProps(widget, newProps, oldProps);
28}
29
30export class RNColorDialog extends QColorDialog implements RNWidget {
31 setProps(newProps: ColorDialogProps, oldProps: ColorDialogProps): void {

Callers 1

setPropsMethod · 0.85

Calls 1

setDialogPropsFunction · 0.90

Tested by

no test coverage detected