Jun 10, 2014, 3:44 AM
Badge and UI
Hi,
I'm using Badge plugin to decorate a dinamically created set of buttons.
They look very nice, however when I scroll the page or collapse the container where buttons are, badge text stays in its place and remain visible.
What I'm doing wrong?
Before colapse:
After colapse:
Here is my code:
I'm using Badge plugin to decorate a dinamically created set of buttons.
They look very nice, however when I scroll the page or collapse the container where buttons are, badge text stays in its place and remain visible.
What I'm doing wrong?
Before colapse:
After colapse:
Here is my code:
private Ext.Net.Button CrearBoton(string id, string texto, object icon, bool habilitado, bool standout, string comando, string idsender, int badge=0, string idGrupoParent = "")
{
Ext.Net.Button boton = new Ext.Net.Button(texto)
{
ID = id,
Disabled = !habilitado,
StandOut = standout
};
if (badge > 0)
boton.Plugins.Add(new Badge() { Text = badge.ToString() });
if (icon != null)
if (icon is Ext.Net.Icon)
boton.Icon = (Ext.Net.Icon)icon;
// Agregar el evento de comando
if (comando != "")
boton.Listeners.Click.Handler = "App.direct.Comando('" + comando + "', '" + idsender + "', '" + id + "', '" + idGrupoParent + "');";
return boton;
}
Last edited by geoffrey.mcgill; Jun 10, 2014 at 5:12 AM.