Sigma Php Ajax framework, Ajax Components, GUI Builder
May 24, 2012, 10:51:48 AM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Sigma Php Ajax framework, Ajax Components, GUI Builder
>
Sigma Visual GUI Builder & Library
>
Sigma Visual - Q&A
(Moderators:
steven
,
linb
) >
MenuBar and PopMenu Questions
Pages: [
1
]
« previous
next »
Print
Author
Topic: MenuBar and PopMenu Questions (Read 578 times)
unger
Jr. Member
Posts: 14
MenuBar and PopMenu Questions
«
on:
February 16, 2010, 04:02:27 PM »
Two related questions:
(1) Is there any way to have a top-level item in a MenuBar be clickable and return a selection ?
(2) How can I eliminate the icon area in PopMenu ?
«
Last Edit: February 17, 2010, 11:50:12 AM by unger
»
Logged
linb
Administrator
Hero Member
Posts: 435
Re: MenuBar and PopMenu Questions
«
Reply #1 on:
February 17, 2010, 05:59:49 PM »
1.
you can add another control to menubar
Class('App', 'linb.Com',{ Instance:{ iniComponents:function(){ // [[code created by jsLinb UI Builder var host=this, children=[], append=function(child){children.push(child.get(0))}; append((new linb.UI.MenuBar) .host(host,"menubar1") .setItems([{"id":"a", "sub":["sub a1", "sub a2"], "caption":"item a", "itemDisplay":""}, {"id":"b", "sub":["sub b1", "sub b2"], "caption":"item b", "itemDisplay":""}, {"id":"c", "object": new linb.UI.SButton({"alias":"sbutton7", "key":"linb.UI.SButton", "properties":{"position":"relative", "caption":"sbutton4"},"events":{onClick:function(){linb.alert('ok')}}}), "caption":"item c"}]) ); return children; // ]]code created by jsLinb UI Builder } } });
or,
Class('App', 'linb.Com',{ Instance:{ iniComponents:function(){ // [[code created by jsLinb UI Builder var host=this, children=[], append=function(child){children.push(child.get(0))}; append((new linb.UI.MenuBar) .host(host,"menubar1") .setItems([{"id":"a", "sub":["sub a1", "sub a2"], "caption":"item a", "itemDisplay":""}, {"id":"b", "sub":["sub b1", "sub b2"], "caption":"item b", "itemDisplay":""}]) .onRender("_menubar1_onrender") ); return children; // ]]code created by jsLinb UI Builder }, _menubar1_onrender:function (profile) { profile.getSubNode('ITEMS').append(new linb.UI.SButton({position:'relative'})) } } });
2.
append((new linb.UI.PopMenu) .host(host,"popmenu5") .setItems([{"id":"a", "caption":"item a", // icon: "image":"img/demo.gif"} ]) );
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News & Announcements
-----------------------------
Sigma Visual GUI Builder & Library
-----------------------------
=> Sigma Visual - Knowledge Share
=> Sigma Visual - Q&A
=> Bug Report & Wishlist
-----------------------------
Sigma Grid
-----------------------------
=> Sigma Grid - Q&A
=> Show Case
=> Bug Report & Wishlist
-----------------------------
Other
-----------------------------
=> AJAX & JavaScript
Loading...