Jump to content

TUniSweetAlert with inputType itSelect. How to Use???


RobertoLopes

Recommended Posts

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

Link to comment
Share on other sites

  • 5 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...