fields icon indicating copy to clipboard operation
fields copied to clipboard

Documentation should have at least one example, or show what is currently being used.

Open nutmix opened this issue 6 years ago • 1 comments

As BigDecimal with scale of more than 3 is truncated with <f:table>, <f:display> etc, as a workaround, we need to override the default display. I have been told that we should create this file:

views/_fields/bigDecimal/_displayWidget.gsp

The question is, what should go in this file? The documentation should have at least one example, or point to where the current contents of this file (which don't seem to exist).

I could do something like ${value}.toPlainString(), but what html formatting needs to go round it to make it look/work like the other values? E.g. does it need div or span? does it need any specific class defined? One example in the docs, or copies of the existing implementations (or link to them) would really help.

nutmix avatar Feb 11 '19 09:02 nutmix

For the time being, examples can be found here: https://github.com/grails-fields-plugin/gr8conf-us-fields-plugin-demo https://github.com/grails-fields-plugin/greach-fields-plugin-demo

sbglasius avatar Mar 05 '19 09:03 sbglasius