Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Add a find bar to Electron App

License

NotificationsYou must be signed in to change notification settings

avwo/electron-find-bar

Repository files navigation

English |中文

find-bar

NPM versionLicense: MIT

This npm package is used to add a find bar to Electron App, and it is very easy to use.

Install

npm i --save find-bar

Usage

const{ app}=require('electron');constsetFindBar=require('find-bar');// add find bar to all windowsapp.on('browser-window-created',(_,win)=>{// do something...setFindBar(win);});

Find bar is implemented throughBrowserWindow, which is essentially a window object. You can usewin._isFindBar to determine whether it is a find bar, and you can usewin._hasFindBar to determine whether the current window is bound to a find bar,and the detailed usage ofsetFindBar is as follows.

setFindBar(win[, options])

exportinterfaceFindBarOptions{left?:number;right?:number;// 80 by defaulttop?:number;// (mac: 20, win: 30) by defaultbottom?:number;darkMode?:boolean;// true by default}exportdefaultfunction(win:any,options?:FindBarOptions):void;

Example

Whistle Client

GitHub:https://github.com/avwo/whistle-client

License

MIT

About

Add a find bar to Electron App

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp