Jump to content

Add optional label beside integer fieldtype


Juergen
 Share

Recommended Posts

This might be a quick fix, but for me this rather looks like a FieldtypeUnit, which fully deals with the fact that you're storing an amount of a unit. With the unit being available alongside the integer at runtime would give you the additional ability to handle the value to it's full extend like being able to converting weeks to days or grams to kilograms. A integer is just a single number but e.g. 60 seconds are just a different representation of the same value of 1 minute. 

  • Like 1
Link to comment
Share on other sites

  • 5 months later...

I had the same request, and wanted to create a new Inputfield at first.

But I think we could see this in a more general manner. It would be nice if we could have field prefixes and suffixes, and also can choose if they are displayed as icons or text.

Uikit has some options at least for icons: 

image.png.ae83ce001823b949bc26ecddb2dd1ea8.png

The icons can even be clickable, you can read about it in the docs: https://getuikit.com/docs/form#form-and-icons

I would love to see support for suffixes and prefixes for most inputfields in the core. Me and some other guys like @bernhard are also building applications in the backend and this would be a good addition.


Maybe we should open a ticket on github?

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...