ng-admin icon indicating copy to clipboard operation
ng-admin copied to clipboard

Add Tooltip/Popover for field configuration

Open shahar3012 opened this issue 9 years ago • 6 comments

Hi,

It would be great if you could add a tooltip / popover option for field configuration in the upcoming version.

Something like this:

I think it should have the question mark symbol next to the field like in the image above.

See: Bootstrap Tooltips Bootstrap Popovers

shahar3012 avatar Nov 14 '15 12:11 shahar3012

Neat idea. In the meantime, don't forget that you can use field templates to customize the fields at will.

fzaninotto avatar Nov 17 '15 12:11 fzaninotto

I think that overriding every field with a template is too much work. Please provide an update on the status of this issue development. Thank you.

shahar3012 avatar Nov 17 '15 20:11 shahar3012

There is no update on the status of this issue development, because this is an open-source project where contributors add features when they actually need it, and on their free time. You're welcome to give a hand, too.

fzaninotto avatar Nov 26 '15 21:11 fzaninotto

I thought I wanted this UI, so I wrote a directive override to achieve it. (details below)

On reflection, I think that this UI isn't great, even though it looks pretty on first glance. It's fiddly to use on a desktop client; very difficult to use on mobile clients and impossible to use on a screen reader. I think that the UI proposed on #1150 is much more user-friendly, even if it perhaps isn't quite as pretty.

Here's the code I added to create these "?" icons on the current version of ng-admin: http://embed.plnkr.co/xQdRTUphBC3854a4VD1k/ (click "edit" on a user to see the "Father's last name only" hint)

RichardBradley avatar Jul 25 '16 09:07 RichardBradley

Perhaps should we just add a hint option instead, which would display a light text just below the field? Something like:

image

(Screenshot taken from https://github.com/callemall/material-ui/issues/2474)

jpetitcolas avatar Oct 03 '16 07:10 jpetitcolas

@jpetitcolas -- yes, that's pretty much how the #1150 UI looks

RichardBradley avatar Oct 03 '16 08:10 RichardBradley