Jump to content

How Can add floating button to UnimDBListGrid


molla2005b

Recommended Posts

44 minutes ago, molla2005b said:

I have a Items List displayed by a TunimDBListGrid
I want to add a FAB button , when I want to add new item to list
click this FAB button

Maybe you can try this solution:

1. UniServerModule -> CustomCSS:

#back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 30px;
    background: #f5f5f5;
    color: #444;
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    text-decoration: none;
    transition: opacity 0.2s ease-out;
    opacity: 0;
}
#back-to-top:hover {
    background: #af286d;
    color: white;
}
#back-to-top.show {
    opacity: 1;
}

2. MainmForm -> ClientEvents -> ExtEvents -> window.painted fn:

function window.painted(sender, eOpts)
{
    var me = this;
    var aTopEl = new Ext.Element(document.createElement('a'));
    aTopEl.setId("back-to-top");
    aTopEl.setHtml("+");
    aTopEl.dom.title = "Back to top";
    document.body.appendChild(aTopEl.dom);
    $('#back-to-top').addClass('show');
    $('#back-to-top').show();

    $('#back-to-top').on('click', function(e) {
        e.preventDefault();
        //ajaxRequest(me, ...)
        alert('Your custom logic...')
    });
}

 

Link to comment
Share on other sites

  • 4 years later...
  • 3 weeks later...
On 10/26/2023 at 3:57 PM, sistemasjg said:

Hello, do you offer any kind of purchasing power parity discount on UniGUI components for customers in Colombia or other Latam countries? Thank you in advance for your reply

 

 

Hola, ¿ofrecen algún tipo de descuento por paridad de poder adquisitivo en componentes UniGUI para clientes en Venezuela u otros países de Latam? Gracias de antemano por su respuesta

 

https://en.wikipedia.org/wiki/Purchasing_power_parity

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...