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
Like Follow 4