andyhill Posted February 15, 2018 Share Posted February 15, 2018 I have a need to add a button to a Slider (as per image) complete with tap event - please advise how - Thanks. Link to comment Share on other sites More sharing options...
Sherzod Posted February 16, 2018 Share Posted February 16, 2018 Hi, What kind of slider ?! Link to comment Share on other sites More sharing options...
andyhill Posted February 16, 2018 Author Share Posted February 16, 2018 The one used on Google Maps for ZOOM Link to comment Share on other sites More sharing options...
Sherzod Posted February 17, 2018 Share Posted February 17, 2018 Ok, I will try to analyze it Link to comment Share on other sites More sharing options...
Sherzod Posted February 19, 2018 Share Posted February 19, 2018 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 More sharing options...
andyhill Posted February 19, 2018 Author Share Posted February 19, 2018 Thank You Farshad - very much appreciated. Link to comment Share on other sites More sharing options...
andyhill Posted February 21, 2018 Author Share Posted February 21, 2018 Taking this a step further, how would we do the very same thing to a mobile DBGridList slider ? Link to comment Share on other sites More sharing options...
Sherzod Posted February 21, 2018 Share Posted February 21, 2018 Ok, I will let you know Link to comment Share on other sites More sharing options...
Sherzod Posted February 21, 2018 Share Posted February 21, 2018 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 More sharing options...
andyhill Posted February 22, 2018 Author Share Posted February 22, 2018 Perfect - thank you Link to comment Share on other sites More sharing options...
Recommended Posts