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