[F/OS] Custom List Picker and Choice Picker Extension

Okay, thanks for testing and suggestions. I will try!

1 Like

Irrespective of font size? Ideally it should adjust item height as per the item font size. I have managed to do this.

1 Like

Thank you for your contribution
A probably better name for the SetList property might be Elements, similar to the default listpicker...
Also you might consider to add an ElementsFromString property

Elements

Specifies the list of choices to display.

ElementsFromString

Set the list of choices from a string of comma-separated values.

Taifun

3 Likes

Thanks for your suggestions. I will do this!

1 Like

UPDATED

Added properties to set:

  1. Font size,
  2. Item height (set 0 for automatic),
  3. Font bold,
  4. Elements from string,
  5. Renamed SetList to Elements.
  6. AfterPicking event will now return both selection and selection index.

Added getter properties

Suggest any new functions or modifications.

3 Likes

UPDATED

image
Added dialog height property to set custom dialog height in pixels. Set 0 for automatic.

Upcoming Feature: Multiple choice list picker dialog!

2 Likes

UPDATED

3 Likes

That was awesome, I love this extension. :heart_eyes:

maybe in the future you can add a TextDialog where the TextBox can be customized and can be added as much as needed.

I think it might be easier if you develop it from an existing component in ai2 so it will be more efficient :grin: :+1:

blocks (1)

2 Likes

Thanks buddy. For showing Text dialog, DaffyDialog extension is already there. My extension focuses on list picker.

1 Like

Oh okay then, I hope in the future there will be an extension that focuses on TextDialog made by you :wink:

2 Likes

@The_K_Studio
I get this error with the app already installed.

1 Like

See this.

You need to change your app theme other than Classic.

3 Likes

It works perfectly, thank you very much @The_K_Studio

3 Likes

Updated: As requested by some user.

2 Likes

Ugh.. I am not a fan of the other themes. I do like this extension and am building an app with it but I sure do wish there was a fix for this. The color schemes of the other themes is messing me up!

I did see that some users are requesting features.. something that would help me without having to change the Theme would be to have a way to change the text color of the hints in a text box.. is this possible?

I also notice that the Title Bar has changed when I use this extension. Any way to edit the text size?

Hi, for which dialog you are trying to set theme colors?

1 Like

Hi.. thanks for the reply. I am using Device Default.. but really would prefer to use the Classic.

1 Like

Unfortunately this extension does not work with AI2 Classic theme.

Also, single choice picker and multiple choice picker dialogs uses device default themes and app accent colors, so it cant be set as per user preferences but you can set app accent color.

For normal list picker dialog you customise its properties by using setter properties.

1 Like

The_K_Studio

Does this extension only work with ListPicker?

and with spinner there will be some extension to change text size, color and centering

image

1 Like

Yes, this works same as list picker.

1 Like