Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customization of popup field #605

Closed
Jeroen-GroeneBij opened this issue Jan 18, 2018 · 3 comments
Closed

Customization of popup field #605

Jeroen-GroeneBij opened this issue Jan 18, 2018 · 3 comments

Comments

@Jeroen-GroeneBij
Copy link

Jeroen-GroeneBij commented Jan 18, 2018

I am trying to change the visual aspects of the popup fields by changing the code.
In Leaflet, header label, I would like to see the relative value centered. So the field name is aligned left and the value which comes on the second line (after the line-break 'br') is aligned center.

However, I have no luck and too little understanding of code to get this done. I can change the alignment but it always applies to both parts of the cell: before and after the line-break 'br'.

Any tips for me?

And is it possible to add customization options to the popup field? It is now 'no label, header label, or inline label' and I would like to have this alignment functionality as an option.
Also the possibility to choose a background colour for the popup field would be nice.

@tomchadwin
Copy link
Collaborator

I don't think there's an easy way to achieve what you want as things stand, and I'm not keen on cluttering the plugin GUI to add such options. However, if I were able to add CSS classes to the popup, you'd then be able to add whatever CSS rules you want. I'll look into this.

@touruyo
Copy link

touruyo commented Nov 13, 2019

I'd like to accomplish this as well by making the attributes appear like a table with field value on the left and description on the right. @tomchadwin were you able to look into the issue? Thanks

@andreaordonselli
Copy link
Collaborator

I have just released version 3.18.1, which significantly changes the appearance of the popup discussed in this thread. Shortly, the update will be available within the QGIS plugin repository.

I am closing the thread and kindly ask you to reopen it if the update does not meet your expectations. Thank you for using the plugin.

I would greatly appreciate it if you would consider donating a virtual coffee through the button on the homepage to support the development of qgis2web.

Best regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants