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

Function setFontDialogProps

src/components/FontDialog/RNFontDialog.ts:13–27  ·  view source on GitHub ↗
(widget: RNFontDialog, newProps: FontDialogProps, oldProps: FontDialogProps)

Source from the content-addressed store, hash-verified

11}
12
13function setFontDialogProps(widget: RNFontDialog, newProps: FontDialogProps, oldProps: FontDialogProps) {
14 const setter: FontDialogProps = {
15 set currentFont(currentFont: QFont) {
16 widget.setCurrentFont(currentFont);
17 },
18 set option({ option, on }: DialogOption<FontDialogOption>) {
19 widget.setOption(option, on);
20 },
21 set options(options: FontDialogOption) {
22 widget.setOptions(options);
23 },
24 };
25 Object.assign(setter, newProps);
26 setDialogProps(widget, newProps, oldProps);
27}
28
29export class RNFontDialog extends QFontDialog implements RNWidget {
30 setProps(newProps: FontDialogProps, oldProps: FontDialogProps): void {

Callers 1

setPropsMethod · 0.85

Calls 1

setDialogPropsFunction · 0.90

Tested by

no test coverage detected