feat: add Button API
This commit is contained in:
parent
ba3700141f
commit
c8e8cb86ce
6 changed files with 109 additions and 0 deletions
15
lib/browser/api/button.js
Normal file
15
lib/browser/api/button.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
'use strict'
|
||||
|
||||
const electron = require('electron')
|
||||
|
||||
const {View} = electron
|
||||
const {Button} = process.atomBinding('button')
|
||||
|
||||
Object.setPrototypeOf(Button.prototype, View.prototype)
|
||||
|
||||
Button.prototype._init = function () {
|
||||
// Call parent class's _init.
|
||||
View.prototype._init.call(this)
|
||||
}
|
||||
|
||||
module.exports = Button
|
Loading…
Add table
Add a link
Reference in a new issue