andyhill Posted February 15, 2018 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.
andyhill Posted February 16, 2018 Author Posted February 16, 2018 The one used on Google Maps for ZOOM
Sherzod Posted February 19, 2018 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,
andyhill Posted February 19, 2018 Author Posted February 19, 2018 Thank You Farshad - very much appreciated.
andyhill Posted February 21, 2018 Author Posted February 21, 2018 Taking this a step further, how would we do the very same thing to a mobile DBGridList slider ?
Sherzod Posted February 21, 2018 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;
Recommended Posts