plasma-framework/scriptengines/javascript/tests/script-digital-clock/contents/code/main.js
Aaron J. Seigo a1549299d7 update the test so others can enjoy it too
svn path=/trunk/KDE/kdebase/workspace/plasma/scriptengines/javascript/; revision=905894
2009-01-05 11:04:04 +00:00

13 lines
306 B
JavaScript

plasmoid.dataUpdate = function(a, b)
{
label.text = "It is " + b.Time.toString() + " in " + a;
}
layout = new LinearLayout(plasmoid);
label = new Label();
layout.addItem(label);
print(dataEngine("time").query("UTC").Time.toString());
plasmoid.dataEngine("time").connectSource("UTC", plasmoid, 500);