Jump to content

Slider - Add Button Far Right


andyhill

Recommended Posts

Hi,

 

Can you try this solution for now ?!:

 

1. UniHiddenPanel1 -> UnimButton1

 

2. MainmForm -> OnReady:

procedure TMainmForm.UnimFormReady(Sender: TObject);
begin
  
  with UnimSlider1.JSInterface do
    JSCode(#1'.bodyElement.insertSibling('+ UnimButton1.JSName +'.element, "after");');

end;

Best regards,

Link to comment
Share on other sites

Taking this a step further, how would we do the very same thing to a mobile DBGridList slider ?

 

1. UniHiddenPanel1 -> UnimButton1

 

2. MainmForm -> OnReady:

procedure TMainmForm.UnimFormReady(Sender: TObject);
begin
  UniSession.AddJS(
    'var slider = ' + UnimDBListGrid1.JSName + '.element.select(".x-docked-bottom").elements;'+
    'if (slider.length > 0) {'+
    '    Ext.getCmp(slider[0].id).bodyElement.insertSibling(' + UnimButton1.JSName + '.element, "after");'+
    '}'
  );
end;
Link to comment
Share on other sites

×
×
  • Create New...