javascript tab

I am trying to find any example of a javascript Tab like explained in the doc http://wiki.micasaverde.com/index.php/JavaScript_API

I d like to create a device which has a specific tab drawing that I would do in javascript but would like to see how one can do this and call set_panel_html (html) at the end.

Can this html parameter includes a for instance ?

[tt]http://forum.micasaverde.com/index.php/topic,7750.msg49749.html#msg49749 / J_DataMine1.js[/tt]

This is a very simple JS tab: J_VistaAlarmPanel1.js in tags/2.44_UI5 – Honeywell Ademco Vista Alarm Panels via AD2USB

And this is how it’s referenced in the Json file:

{
    "Label": {
        "lang_tag": "cheat_sheet",
        "text": "Cheat Sheet"
    },
    "Position": "1",
    "TabType": "javascript",
    "ScriptName": "J_VistaAlarmPanel1.js",
    "Function": "showCheatSheet"
}

Edit: Ap15e was faster than me. :slight_smile:

Excellent ! thank you both

A couple of my plugins use JavaScript tabs extensively. Like dataMine, these are not simple examples.

Caddx alarm panel

CurrentCost EnviR