Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit a5d7a9f

Browse files
committed
Remove mentions of namespace="foreign" from the docs
1 parent 4401f4a commit a5d7a9f

File tree

11 files changed

+0
-17
lines changed

11 files changed

+0
-17
lines changed

website/docs/api/interfaces/abstractbuttonprops.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ The Button component provides ability to add and manipulate native button widget
2121
});
2222
</script>
2323

24-
<svelte:options namespace="foreign" />
2524
<window bind:this={win}>
2625
<button style="color: white;">Hello World</button>
2726
</window>

website/docs/api/interfaces/buttonprops.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ The Button component provides ability to add and manipulate native button widget
2121
});
2222
</script>
2323

24-
<svelte:options namespace="foreign" />
2524
<window bind:this={win}>
2625
<button style="color: white;">Hello World</button>
2726
</window>

website/docs/api/interfaces/checkboxprops.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ The CheckBox component provides ability to add and manipulate native button widg
2121
});
2222
</script>
2323

24-
<svelte:options namespace="foreign" />
2524
<window bind:this={win}>
2625
<checkBox style="color: white;" checked={true}>Hello World</checkBox>
2726
</window>

website/docs/api/interfaces/systemtrayiconprops.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ The SystemTrayIcon component provides the ability to add and manipulate a native
3333
});
3434
</script>
3535

36-
<svelte:options namespace="foreign" />
3736
<window bind:this={win}>
3837
<systemTrayIcon {icon} tooltip="Hello World" visible>
3938
<menu actions={[action]}/>

website/docs/api/interfaces/viewprops.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ It functions similar to a div in the web world. It is based on
2323
});
2424
</script>
2525

26-
<svelte:options namespace="foreign" />
2726
<window bind:this={win}>
2827
<view>
2928
<button style="{buttonStyle}">Hello</button>

website/docs/guides/handle-events.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ The following example demonstrates how to add a clicked event listener to a butt
3535
});
3636
</script>
3737

38-
<svelte:options namespace="foreign" />
3938
<window bind:this={win}>
4039
<button on:clicked={onClicked} text="Click me"/>
4140
</window>
@@ -205,7 +204,6 @@ Renderer.render(<App />);
205204
});
206205
</script>
207206

208-
<svelte:options namespace="foreign" />
209207
<window bind:this={win}>
210208
<!-- See the WidgetEventTypes interface for the names of all supported events. -->
211209
<text

website/docs/guides/images.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ A very minimal example would look like this:
2727
});
2828
</script>
2929

30-
<svelte:options namespace="foreign" />
3130
<window bind:this={win}>
3231
<image src="https://docs.nodegui.org/img/logo-circle.png" />
3332
</window>

website/docs/guides/layout.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ A component's height and width determine its size on the screen. The simplest wa
2222
});
2323
</script>
2424

25-
<svelte:options namespace="foreign" />
2625
<window bind:this={win}>
2726
<view style="width: 50px; height: 30px; background-color: yellow;"/>
2827
</window>
@@ -64,7 +63,6 @@ The code for that would look something like this:
6463
});
6564
</script>
6665

67-
<svelte:options namespace="foreign" />
6866
<window bind:this={win}>
6967
<view id="rootView">
7068
<text id="label">Hello</text>
@@ -128,7 +126,6 @@ BoxView Layout is an implementation of QBoxLayout of NodeGui.
128126
});
129127
</script>
130128

131-
<svelte:options namespace="foreign" />
132129
<window bind:this={win}>
133130
<boxView direction={direction}>
134131
<button text="Add" on={addHandler} />
@@ -185,7 +182,6 @@ GridView Layout is an implementation of QGridLayout of NodeGui.
185182
});
186183
</script>
187184

188-
<svelte:options namespace="foreign" />
189185
<window bind:this={win}>
190186
<gridView
191187
style="flex: 1"

website/docs/guides/scroll-view.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ ScrollArea allows you to display a large content (image, list or even plain text
2020
});
2121
</script>
2222

23-
<svelte:options namespace="foreign" />
2423
<window bind:this={win}>
2524
<scrollArea>
2625
<text>

website/docs/guides/styling.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ Here's an example:
2020
});
2121
</script>
2222

23-
<svelte:options namespace="foreign" />
2423
<window bind:this={win}>
2524
<text style="color: green; background-color: white;">
2625
Hello World
@@ -51,7 +50,6 @@ Lets take a look at an example:
5150
});
5251
</script>
5352

54-
<svelte:options namespace="foreign" />
5553
<window bind:this={win}>
5654
<view id="rootView">
5755
<text id="helloLabel">Hello</text>
@@ -101,7 +99,6 @@ Lets look at this example again:
10199
});
102100
</script>
103101

104-
<svelte:options namespace="foreign" />
105102
<window bind:this={win}>
106103
<text style="color: green; background-color: white; height: '100%';">Hello World</text>
107104
</window>

0 commit comments

Comments
 (0)