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

Function setWindowProps

src/components/Window/RNWindow.ts:14–27  ·  view source on GitHub ↗
(
  window: RNWindow,
  newProps: WindowProps,
  oldProps: WindowProps
)

Source from the content-addressed store, hash-verified

12}
13
14const setWindowProps = (
15 window: RNWindow,
16 newProps: WindowProps,
17 oldProps: WindowProps
18) => {
19 const setter: WindowProps = {
20 set menuBar(menubar: QMenuBar) {
21 window.setMenuBar(menubar);
22 console.log("menubar was set");
23 },
24 };
25 Object.assign(setter, newProps);
26 setViewProps(window, newProps, oldProps);
27};
28
29/**
30 * @ignore

Callers 1

setPropsMethod · 0.85

Calls 1

setViewPropsFunction · 0.90

Tested by

no test coverage detected