Revision: 4394 http://vexi.svn.sourceforge.net/vexi/?rev=4394&view=rev Author: clrg Date: 2012-05-31 12:44:44 +0000 (Thu, 31 May 2012) Log Message: ----------- Feature. Initialize menuitem with content.
Modified Paths: -------------- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/menuitem.t Modified: trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/menuitem.t =================================================================== --- trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/menuitem.t 2012-05-31 12:29:13 UTC (rev 4393) +++ trunk/org.vexi-vexi.widgets/src_main/org/vexi/lib/widget/menuitem.t 2012-05-31 12:44:44 UTC (rev 4394) @@ -16,6 +16,18 @@ thisbox.Enter ++= static.enterEvent; thisbox.Leave ++= static.leaveEvent; + { + var arg = arguments[0]; + if (arg) { + thisbox.v_ready ++= function(v) { + cascade = v; + text = arg.text; + icon = arg.icon; + action ++= arg.action; + } + } + } + </ui:box> /** simply set the icon; expects a stream */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Vexi-svn mailing list Vexi-svn@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vexi-svn