4
Customized button
Hello everybody,
I added the buttonEvent to Ninext. This allows to dynamically change the caption, the color and the help title of a button. Just add the onUpdate function in the "Display field only, if:" function.
function onUpdate(event : any) do
{
caption: Caption,
buttonColor: text(Color),
title: Title
}
end;
true
I also added the possibility to display a badge, like on the files and comments tabs. For this, you just have to add the parameters bages.caption and badge.color :
function onUpdate(event : any) do
{
caption: Caption,
buttonColor: text(Color),
title: Title,
badge: {
caption: 'badge caption',
color: 'Badge color'
}
}
end;
true
I have added an example of use in attachment.
Enjoy
6 replies
-
Chouette Jacques TUR merci!
-
That's clever and like most good things posted here. I then think how can I use that in my system... Like it :-)
-
Like it.
Put following script 'on click':'badge caption' := text(number('badge caption') + 1)
and you get a button counter.
Content aside
-
4
Likes
- 1 yr agoLast active
- 6Replies
- 505Views
-
6
Following