Skip to main content
Open

HTMLReportGenerator Table Styling

Related products:Transformers
pmt
rylanatsafe
hvukasinovic
chrisatsafe
siennaatsafe
+54
  • pmt
    pmt
  • rylanatsafe
    rylanatsafe
  • hvukasinovic
    hvukasinovic
  • chrisatsafe
    chrisatsafe
  • siennaatsafe
    siennaatsafe
  • sanaeatsafe
    sanaeatsafe
  • fmelizard
    fmelizard
  • david_r
    david_r
  • redgeographics
    redgeographics
  • takashi
    takashi
  • danilo_fme
    danilo_fme
  • warrendev
    warrendev
  • tcrossman
    tcrossman
  • vxn43
    vxn43
  • deanhowell
    deanhowell
  • j.botterill
    j.botterill
  • runneals
    runneals
  • dbaldacchino1
    dbaldacchino1
  • lorenrouth
    lorenrouth
  • kennyo
    kennyo
  • cory
    cory
  • milo89
    milo89
  • srg
    srg
  • lambertus
    lambertus
  • ciarab
    ciarab
  • marko
  • wilsonlee
    wilsonlee
  • taudorf
  • just_super
  • sblazey
  • jnotter
    jnotter
  • dbaldacchino
  • ashish_man
    ashish_man
  • paulc1
  • cdalessandro
    cdalessandro
  • nixynoodle
    nixynoodle
  • 0xbox0
    0xbox0
  • cwarren
    cwarren
  • map_maker
  • ecthelion
    ecthelion
  • juliarozema
    juliarozema
  • felipeverdu
    felipeverdu
  • gavinpark
    gavinpark
  • bobw
    bobw
  • joshuadamron
    joshuadamron
  • ian_1spatial
    ian_1spatial
  • jpvo
    jpvo
  • wicki
    wicki
  • tomw202
    tomw202
  • shawn.brandt
  • helenocarroll
  • beammeupper
    beammeupper
  • turid_skedsmo
  • mchauvet
    mchauvet
  • doug.bell
    doug.bell
  • axoda
  • firework_girl
  • arenscott
    arenscott
  • laurawatsafe
    laurawatsafe

Allow styling of the tables in HTMLReportGenerator to make tables more personalised.

Such as:

  • Changing fonts and font colour
  • Change the size of the columns and the format of the columns (right aligned, centre aligned, etc)
  • Modify the colour of the rows when the table style is set to striped

14 replies

takashi
Influencer
  • September 6, 2016

Yes, I wish especially alignment options (right-align, left-align, center) for table header and each body column.


Forum|alt.badge.img+6

I'd like to see the option to select your own .css instead. Currently I'm having to parse out the html output to replace some of the out-of-the-box tag values with others. It would make things SO much easier to specify from the outset instead of having to do a lot of RegEx "find & replace" operations after the fact. For example I'm using w3.css from http://www.w3schools.com/w3css/default.asp, which I find to be really clean, easy to use and well documented. Having the ability to specify column widths etc. would be great instead of doing this the dirty way.


dbaldacchino1
Supporter
Forum|alt.badge.img+11

 

The ability to specify your own stylesheet and settings (column widths, colors, fonts, etc.) would be great. I am having to do a lot of RegEx "find & replace" operations to achieve this and it gets annoying :) As a side note, I find w3.css to be very easy to use, clean and well documented.

dbaldacchino1
Supporter
Forum|alt.badge.img+11

Is this closed for comment?


Forum|alt.badge.img+6

Having the ability to specify a style sheet and certain settings (ex: column widths, font size, colors, etc.) would be fantastic. Currently I'm having to parse the html out of this transformer to replace the .css and associated properties via RegEx "find & replace" operations. It gets old doing it this way instead of specifying styling ahead of generating the output! I find w3.css to be very easy to use, clean and well documented (http://www.w3schools.com/w3css/default.asp).


Forum|alt.badge.img+6

Having the ability to specify a style sheet and certain settings (ex: column widths, font size, colors, etc.) would be fantastic. Currently I'm having to parse the html out of this transformer to replace the .css and associated properties via RegEx "find & replace" operations. It gets old doing it this way instead of specifying styling ahead of generating the output! I find w3.css to be very easy to use, clean and well documented.


Forum|alt.badge.img+6

I cannot seem to be able to post a comment.


dbaldacchino1
Supporter
Forum|alt.badge.img+11

Having the ability to specify a style sheet and certain settings (ex: column widths, font size, colors, etc.) would be fantastic. Currently I'm having to parse the html out of this transformer to replace the .css and associated properties via RegEx "find & replace" operations. It gets old doing it this way instead of specifying styling ahead of generating the output! I find w3.css to be very easy to use, clean and well documented (http://www.w3schools.com/w3css/default.asp).


dbaldacchino1
Supporter
Forum|alt.badge.img+11

Having the ability to specify your own stylesheet and settings would be fantastic (column width, font size, colors, etc.) instead of the built-in variety. I am currently doing a lot of RegEx "find & replace" operations on the HTML output to achieve this. As a side note, I find w3.css to be clean, easy to use and very well documented.


srg
Forum|alt.badge.img+10
  • February 17, 2017
I think this is now possible with the Custom HTML function in the HTMLReportGenerator. But it would be great if this is exposed in the Table option instead of having to code using HTML.

 

Custom HTML

 

 


jnotter
Contributor
Forum|alt.badge.img+5
  • Contributor
  • January 15, 2020

I would like to see this capability extended into the HTMLReportGenerator Mapbox(Leaflet) page content item such that each feature in the data could be styled according to attributes of a polygon/point/object. MapboxStyler can expose colorized layers to an inspector, but if passed through HTMLReportGenerator they become slaved to a single color that gets set once in the Mapbox(Leaflet) setting.


runneals
Contributor
Forum|alt.badge.img+19
  • Contributor
  • December 4, 2020

I've ran into the need to be able to style cells in tables based on conditional formatting. It would be GREAT if we could include HTML tags natively in the table instead of having them being not included.


j.botterill
Influencer
Forum|alt.badge.img+39
  • Influencer
  • May 24, 2022

Surely new improved style functionality can be added to the Table content function of the HTMLreportGenerator?

An issue arises for me, where features have long strings, there is currently no way to resize the header / column to a width so I can force the text string to word wrap.

Strings are not resized in the table to a width %Here is the output from the htmlreportgenerated table

2So what we need is something to add <th> header tags with width="X%"

table content options - add a width resizing option for the <th> tag header Hopefully we can then generate something like this:th style width %


j.botterill
Influencer
Forum|alt.badge.img+39
  • Influencer
  • November 29, 2023

For those following this idea, there are other HTMLreportgenerator improvements being requested by the community which you can vote up as well !

AC Idea: HTMLReportGenerator improvement suggestions (safe.com)

AC Idea: htmlreportgenerator - allow for layer colour to be linked to attributes (safe.com)

Symbolise Layers in HTML Report Generator / HTML Layouter (safe.com)

Ideally the htmlreportgenerator content settings would allow the "Color Layer" to make use of conditional values so you can style different fme_feature_types/fme_color for exampletransformers_with_color_conditional


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings