RobertoLopes Posted January 30, 2020 Share Posted January 30, 2020 Hello guys Anyone have a piece of code to show me how can I fill the combo box that appears when I chho itSelect as InputType on the SweetAlert Component ? What properties/methods should I fill/call ? Thanks a lot. Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted January 30, 2020 Share Posted January 30, 2020 Hi, You need to call UniSweetAlert1.AddInputOptions. AddInputOptions('Caption 1', 'value 1'); AddInputOptions('Caption 2', 'value 2'); AddInputOptions('Caption 3', 'value 3'); Also, I found a bug while testing. Fixed in our side.If you don't want to wait next build Please open UniSweetAlert.pas Change Line 234 to IfThen(Length(FInputOptions) > 0, 'inputOptions'), JSStatement(GeTInputOptionsCommaText), and Line 315 to for i := 0 to Length(FinputOptions)-1 do Quote Link to comment Share on other sites More sharing options...
bolossis Posted July 29, 2020 Share Posted July 29, 2020 How to we get the selected value or itemindex of the selected InputOption? Quote Link to comment Share on other sites More sharing options...
RobertoLopes Posted July 29, 2020 Author Share Posted July 29, 2020 3 hours ago, bolossis said: How to we get the selected value or itemindex of the selected InputOption? Use the InputResult property that you have specified on the second parameter of the method AddInputIOptions. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.