electron/lib/browser/api/views/md-text-button.js
Cheng Zhao 260778e0fb feat: add MdTextButton to View APIs (#15328)
* view: make button focusable by default

* view: add MdTextButton

* view: add common methods to LabelButton
2018-10-23 10:57:13 -04:00

15 lines
370 B
JavaScript

'use strict'
const electron = require('electron')
const { LabelButton } = electron
const { MdTextButton } = process.atomBinding('md_text_button')
Object.setPrototypeOf(MdTextButton.prototype, LabelButton.prototype)
MdTextButton.prototype._init = function () {
// Call parent class's _init.
LabelButton.prototype._init.call(this)
}
module.exports = MdTextButton