Git Product home page Git Product logo

Comments (5)

tablacus avatar tablacus commented on July 28, 2024

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.

pmros avatar pmros commented on July 28, 2024

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.

tablacus avatar tablacus commented on July 28, 2024

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.

pmros avatar pmros commented on July 28, 2024

Maybe RunEvent is what I was looking for...
I have to play with Tablacus Eplorer API.
Thank you for Tablacus!

from tablacusexplorer.

tablacus avatar tablacus commented on July 28, 2024

You are welcome.

from tablacusexplorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.