feat: add LabelButton API

This commit is contained in:
Cheng Zhao 2018-05-24 17:11:08 +09:00
parent c8e8cb86ce
commit 70e17b5f8f
8 changed files with 126 additions and 5 deletions

View file

@ -0,0 +1,15 @@
'use strict'
const electron = require('electron')
const {Button} = electron
const {LabelButton} = process.atomBinding('label_button')
Object.setPrototypeOf(LabelButton.prototype, Button.prototype)
LabelButton.prototype._init = function () {
// Call parent class's _init.
Button.prototype._init.call(this)
}
module.exports = LabelButton