Comments (5)
It is OK in the same way in another add-ons.
AddEvent("StatusText", function (Ctrl, Text, iPart)
{
//Write the script here.
});
Tablacus Explorer's ”AddEvent" is something like Web browser's "addEventListener".
Syntax
AddEvent(type, listener[, priority])
type
A string representing the event type to listen for.
"StatusText", "ChangeView" etc
listener
The object that receives a notification when an event of the specified type occurs.
This must be an object implementing the EventListener interface, or simply a JavaScript function.
priority
true: Add to before
false: Add to behind
from tablacusexplorer.
I understand how to listen for events (AddEvent) but I still don't know how to trigger/fire an event.
For example, I don't know how to code an addon that send some text to statusbar. Suppose I want to code a tiny (and stupid) addon that show "Hello world" at status bar when you click a button/image/option-menu.
Could you help me? Thanks again.
from tablacusexplorer.
I am sorry. I was mistaken.
You use ShowStatusText function in your add-on.
ShowStatusText(te, "Hello world", 0);
The next code does not work. I fix in the next version of Tablacus Explorer.
te.OnStatusText(te, "Hello world", 0);
Thank you.
from tablacusexplorer.
Maybe RunEvent is what I was looking for...
I have to play with Tablacus Eplorer API.
Thank you for Tablacus!
from tablacusexplorer.
You are welcome.
from tablacusexplorer.
Related Issues (20)
- マウスドラッグ操作(範囲選択など)でマウス動作が引っ掛かって止まるようになる場合がある HOT 3
- Split tabs haven't a clear accent on active one HOT 2
- Feature request - Inner Favorites bar (Vertical tool bar) HOT 14
- Open Instead 1.13 Opens Duplicate Tabs HOT 17
- Patches for TE and add-ons HOT 2
- size column is blank HOT 7
- Can't drag items to the Link Bar. HOT 2
- error while moving file HOT 2
- [Feature request] Move/rearrange/Delete bookmark in Horizontal Favorites bar + Bookmark this Tab
- Request: save immediately tab settings when opening a tab or renaming a tab HOT 1
- Always creates 2 new folders HOT 1
- FastCopy Addon Not Listing Source Files HOT 4
- リンクのショートカット先への移動
- Tablacus Explorer で右クリックした際に「貼り付け」だけを表示させる方法はありますか? HOT 1
- Tablacus Explorer のオプションで、メニューのコンテキストのベースを「編集」へ変更した時の「貼り付け」の挙動について HOT 1
- Add-on failure -“Force refresh”and “close tab when deleting” HOT 1
- Panel management (New feature)
- Autoplay media and images using mpv HOT 2
- issue with multiple processes of tablacus HOT 4
- Opening TE by clicking folder on the desktop opens three additional "dead" tabs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tablacusexplorer.