Quick question:
Quick question:
I can do addCustomView from script.
But how do I set an eventHandler to create the initial content as I would in The create event?
]]>
< ![CDATA[
http://www.lightninglauncher.com/scripting/reference/api/reference/net/pierrox/lightning_launcher/script/api/PropertySet.html
(The last table)
]]>
< ![CDATA[
Oops, missed that. .Thanks!
]]>
< ![CDATA[
var ed = Sitem.getProperties().edit(); ed.setEventHandler(“v.onCreate”, EventHandler.RUN_SCRIPT, script-Id);
ed.commit();
got this, but no item in the CustomView ??
Script i use work when set by hand.
]]>
< ![CDATA[
You forgot to read carefully the documentation 😉
The v.onCreate is not an event handler, it is a string.
var ed = Sitem.getProperties().edit(); ed.setString(“v.onCreate”, script-Id);
ed.commit();
]]>
< ![CDATA[
Got it working now!!! Thanks again!
]]>