Country flag icons in Rain

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
Krisztyan
Posts: 35
Joined: 19 Jan 2021, 21:16

11 Jun 2021, 10:09

Hello All,

in my design I would like to show a country flag based on a country code.

Something similar just like in the following datatable showcase
http://www.primefaces.org:8080/showcase ... fwid=0528b

Can somebody tell me how can I get/use these kind of icons? Is it built in Primefaces or is it
some third party icons?

Many thanks in advance for your help and best regards,
Krisztyan

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

11 Jun 2021, 11:25

Hi,

Please add "src/main/webapp/resources/demo/css/flags" folder from rain tag folder to your project and import css file path to your xhtml head. After than you can use these flags with css tags. For example:

Code: Select all

<span class="flag flag-#{customer.country.code}" style="width: 30px; height: 20px"/>
Best Regards,

Krisztyan
Posts: 35
Joined: 19 Jan 2021, 21:16

11 Jun 2021, 16:10

Hi Siris,

many thanks for your help.

What do you mean by "from rain tag folder to your project"?

Best regards,
Krisztyan

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

11 Jun 2021, 21:31

Hi,
What do you mean by "from rain tag folder to your project"?
You asked in rain template forum. So if you were download rain template zip file. You should have tag folder.

Krisztyan
Posts: 35
Joined: 19 Jan 2021, 21:16

14 Jun 2021, 12:06

Hello Siris,

thank you very much for your help. I found the tag folder and the mentioned files.

Best regards,
Krisztyan

siris
Posts: 322
Joined: 29 Jul 2019, 13:57

14 Jun 2021, 13:15

You are welcome!

Post Reply

Return to “Rain - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests