Skip to content

Commit c8e9687

Browse files
committed
Merge pull request electron#135 from electron/sm-demo-button
Update demo button label
2 parents c30bd57 + 94121f5 commit c8e9687

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

sections/menus/menus.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2>ProTip</h2>
4848
</button>
4949
<div class="demo-box">
5050
<div class="demo-controls">
51-
<button class="demo-button" id="context-menu">Demo</button>
51+
<button class="demo-button" id="context-menu">View Demo</button>
5252
</div>
5353
<p>A context, or right-click, menu can be created with the <code>menu</code> and <code>menuitem</code> modules as well. You can right-click anywhere in this app or click the demo button to see an example context menu.</p>
5454

sections/native-ui/dialogs.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h3>The <code>dialog</code> module in Electron allows you to use native system d
2121
</button>
2222
<div class="demo-box">
2323
<div class="demo-controls">
24-
<button class="demo-button" id="select-directory">Demo</button>
24+
<button class="demo-button" id="select-directory">View Demo</button>
2525
<span class="demo-response" id="selected-file"></span>
2626
</div>
2727
<p>In this demo, the <code>ipc</code> module is used to send a message from the renderer process instructing the main process to launch the open file (or directory) dialog. If a file is selected, the main process can send that information back to the renderer process.</p>
@@ -54,7 +54,7 @@ <h2>ProTip</h2>
5454
</button>
5555
<div class="demo-box">
5656
<div class="demo-controls">
57-
<button id="error-dialog" class="demo-button">Demo</button>
57+
<button id="error-dialog" class="demo-button">View Demo</button>
5858
</div>
5959
<p>In this demo, the <code>ipc</code> module is used to send a message from the renderer process instructing the main process to launch the error dialog.</p>
6060

@@ -74,7 +74,7 @@ <h5>Main Process</h5>
7474
</button>
7575
<div class="demo-box">
7676
<div class="demo-controls">
77-
<button class="demo-button" id="information-dialog">Demo</button>
77+
<button class="demo-button" id="information-dialog">View Demo</button>
7878
<span class="demo-response" id="info-selection"></span>
7979
</div>
8080
<p>In this demo, the <code>ipc</code> module is used to send a message from the renderer process instructing the main process to launch the information dialog. Options may be provided for responses which can then be relayed back to the renderer process.</p>
@@ -95,7 +95,7 @@ <h5>Main Process</h5>
9595
</button>
9696
<div class="demo-box">
9797
<div class="demo-controls">
98-
<button class="demo-button" id="save-dialog">Demo</button>
98+
<button class="demo-button" id="save-dialog">View Demo</button>
9999
<span class="demo-response" id="file-saved"></span>
100100
</div>
101101
<p>In this demo, the <code>ipc</code> module is used to send a message from the renderer process instructing the main process to launch the save dialog. It returns the path selected by the user which can be relayed back to the renderer process.</p>

sections/native-ui/ex-links-file-manager.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h3>The <code>shell</code> module in Electron allows you to access certain nativ
2020
</button>
2121
<div class="demo-box">
2222
<div class="demo-controls">
23-
<button class="demo-button" id="open-file-manager">Demo</button>
23+
<button class="demo-button" id="open-file-manager">View Demo</button>
2424
</div>
2525
<p>This demonstrates using the <code>shell</code> module to open the system file manager at a particular location.</p>
2626
<p>Clicking the demo button will open your file manager at the root.</p>
@@ -37,7 +37,7 @@ <h5>Renderer Process</h5>
3737
</button>
3838
<div class="demo-box">
3939
<div class="demo-controls">
40-
<button class="demo-button" id="open-ex-links">Demo</button>
40+
<button class="demo-button" id="open-ex-links">View Demo</button>
4141
</div>
4242
<p>If you do not want your app to open website links <em>within</em> the app, you can use the <code>shell</code> module to open them externally. When clicked, the links will open outside of your app and in the user's default web browser.</p>
4343
<p>When the demo button is clicked, the electron website will open in your browser.<p>

sections/native-ui/tray.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h3>The <code>tray</code> module allows you to create an icon in the operating s
2020
</button>
2121
<div class="demo-box">
2222
<div class="demo-controls">
23-
<button class="demo-button" id="put-in-tray">Demo</button>
23+
<button class="demo-button" id="put-in-tray">View Demo</button>
2424
<span class="demo-response" id="tray-countdown"></span>
2525
</div>
2626
<p>The demo button sends a message to the main process using the <code>ipc</code> module. In the main process the app is told to place an icon, with a context menu, in the tray.</p>

sections/printing/pdf.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h3>The <code>browser window</code> module in Electron has a property, <code>web
1919
</button>
2020
<div class="demo-box">
2121
<div class="demo-controls">
22-
<button class="demo-button" id="print-pdf">Demo</button>
22+
<button class="demo-button" id="print-pdf">View Demo</button>
2323
<span class="demo-response" id="pdf-path"></span>
2424
</div>
2525
<p>To demonstrate the print to PDF functionality, the demo button above will save this page as a PDF and, if you have a PDF viewer, open the file.</p>

sections/system/app-sys-information.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ <h3>With a few Node.js and Electron modules you can gather information about the
1818
</button>
1919
<div class="demo-box">
2020
<div class="demo-controls">
21-
<button class="demo-button" id="app-info">Demo</button>
21+
<button class="demo-button" id="app-info">View Demo</button>
2222
<span class="demo-response" id="got-app-info"></span>
2323
</div>
2424
<p>The <code>process</code> module is built into Node.js (therefore you can use this in both the main and renderer processes) and in Electron apps this object has a few more useful properties on it.</p>
@@ -49,7 +49,7 @@ <h2>ProTip</h2>
4949
</button>
5050
<div class="demo-box">
5151
<div class="demo-controls">
52-
<button class="demo-button" id="sys-info">Demo</button>
52+
<button class="demo-button" id="sys-info">View Demo</button>
5353
<span class="demo-response" id="got-sys-info"></span>
5454
</div>
5555
<p>The Node.js <code>os</code> module provides useful information about the user's operating system. It's built into Node.js and can be used in both the main and renderer proesses.</p>
@@ -69,7 +69,7 @@ <h5>Renderer Process</h5>
6969
</button>
7070
<div class="demo-box">
7171
<div class="demo-controls">
72-
<button class="demo-button" id="screen-info">Demo</button>
72+
<button class="demo-button" id="screen-info">View Demo</button>
7373
<span class="demo-response" id="got-screen-info"></span>
7474
</div>
7575
<p>The Electron <code>screen</code> module retrieves information about screen size, displays, cursor position, etc. In the example below we retrieve the dimensions of the monitor in use.</p>

sections/windows/windows.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ <h3>The <code>BrowserWindow</code> module in Electron allows you to create a new
2121
</button>
2222
<div class="demo-box">
2323
<div class="demo-controls">
24-
<button class="demo-button" id="new-window">Demo</button>
24+
<button class="demo-button" id="new-window">View Demo</button>
2525
</div>
2626
<p>The <code>BrowserWindow</code> module gives you the ability to create new windows in your app. This main process module can be used from the renderer process with the <code>remote</code> module, as is shown in this demo.</p>
2727

@@ -49,7 +49,7 @@ <h2>ProTip</h2>
4949
</button>
5050
<div class="demo-box">
5151
<div class="demo-controls">
52-
<button class="demo-button" id="manage-window">Demo</button>
52+
<button class="demo-button" id="manage-window">View Demo</button>
5353
<span class="demo-response" id="manage-window-reply"></span>
5454
</div>
5555
<p>In this demo we create a new window and listen for <code>move</code> and <code>resize</code> events on it. Click the demo button, change the new window and see the dimenions and poisition update here, above.</p>
@@ -68,7 +68,7 @@ <h5>Renderer Process</h5>
6868
</button>
6969
<div class="demo-box">
7070
<div class="demo-controls">
71-
<button class="demo-button" id="frameless-window">Demo</button>
71+
<button class="demo-button" id="frameless-window">View Demo</button>
7272
</div>
7373
<p>
7474
A frameless window is a window that has no <a href="https://developer.mozilla.org/en-US/docs/Glossary/Chrome">"chrome"</a>,

0 commit comments

Comments
 (0)