Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 09:54:41 PM
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
) >
how to add event to cmdbtns
Pages: [
1
]
« previous
next »
Print
Author
Topic: how to add event to cmdbtns (Read 1106 times)
17ext
Newbie
Posts: 3
how to add event to cmdbtns
«
on:
February 02, 2009, 06:01:06 AM »
I came across sigma builder yesterday and tried it. It is really very nice and powerful.
But when it comes to cmdbtns, I can't find a place to add event handler. For example, ok/cancel button of colorpicker, how to add events for these two ones?
I can't find it in API documentation, either.
Logged
jjhon
Newbie
Posts: 1
Re: how to add event to cmdbtns
«
Reply #1 on:
May 22, 2011, 01:09:14 PM »
I have the same question. Did someone found anything?
Logged
baby bottles
linb
Administrator
Hero Member
Posts: 435
Re: how to add event to cmdbtns
«
Reply #2 on:
May 22, 2011, 06:07:16 PM »
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.ColorPicker)
.setHost(host,"ctl_colorpicker1")
.setLeft(230)
.setTop(170)
.setAdvance(true)
.beforeUIValueSet("_ctl_colorpicker1_beforeuivalueset")
.onRender("_ctl_colorpicker1_onrender")
.beforeClose("_ctl_colorpicker1_beforeclose")
);
return children;
// ]]code created by jsLinb UI Builder
},
_ctl_colorpicker1_beforeclose : function (profile, src) {
alert('for cancel event');
// return false to stop this event
},
_ctl_colorpicker1_beforeuivalueset : function (profile, oldValue, newValue) {
alert('before value changed');
// return false to stop this event
},
_ctl_colorpicker1_onrender : function (profile) {
profile.getSubNode("SET").onClick(function(){
alert('custom event');
});
}
}
});
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...