dschnelldavis / angular2-json-schema-form

Angular 2 JSON Schema Form builder
MIT License
284 stars 177 forks source link

Displaying tooltips or hover help for form fields #167

Open ghost opened 6 years ago

ghost commented 6 years ago

Issue type

I'm submitting a (check one): [ ] Bug report [x] Feature request [ ] Regression (something that used to work, but stopped working in a newer version) [ ] Support request [ ] Documentation issue or request

Prerequisites

Before posting, make sure you do the following (check all): [x] Confirm you are using the latest versions of all necessary packages (or if not, explain why not) [x] Search GitHub for a similar issue or PR [x] If submitting a Support request, also search [Stack Overflow][stack-overflow] for similar issues Note: Please cross-post GitHub support requests to [Stack Overflow][stack-overflow], and include a link in your GitHub issue to your Stack Overflow question. We do currently respond to support requests on GitHub, but we eventually expect to stop, and will then refer all support questions exclusively to Stack Overflow.

Current behavior

I am learning how to use this package by working with the ng-jsf-bootstrap4-seed-master project. I have successfully created my JSON schema and am experimenting with how to create the layout for my form. I noticed that the <description> element from my schema appears on the form with "class="help-block". I would like for my element descriptions to appear on my fields as tooltips or hover helps instead of filling up my webpage with a lot of extra text.

I have been searching google and the issues for this project, but I haven't found any mention of a way to do this. Is there support for displaying the element description as a tooltip for the form fields and suppressing the generated <p class="help-block"> elements?

Environment

OS name & version: Windows 10 Browser name & version: Firefox and/or Chrome Angular version: 4 Angular JSON Schema Form version(s): angular2-json-schema-form@0.6.0-alpha.2 Other relevant software or packages: Bootstrap 4

blained3 commented 6 years ago

I also would like this behavior for Material Design