Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
38 lines (30 loc) · 1.22 KB

examples.md

File metadata and controls

38 lines (30 loc) · 1.22 KB
title description slug hide_title
Examples Overview
A set of examples for common Electron features
examples
false

Examples Overview

In this section, we have collected a set of guides for common features that you may want to implement in your Electron application. Each guide contains a practical example in a minimal, self-contained example app. The easiest way to run these examples is by downloading Electron Fiddle.

Once Fiddle is installed, you can press on the "Open in Fiddle" button that you will find below code samples like the following one:

window.addEventListener('DOMContentLoaded', () => {
  const replaceText = (selector, text) => {
    const element = document.getElementById(selector)
    if (element) element.innerText = text
  }

  for (const type of ['chrome', 'node', 'electron']) {
    replaceText(`${type}-version`, process.versions[type])
  }
})

How to...?

You can find the full list of "How to?" in the sidebar. If there is something that you would like to do that is not documented, please join our Discord server and let us know!