3liz / lizmap-web-client

Transfer a QGIS project on a server, Lizmap is providing the web interface to browse it
https://www.lizmap.com
Mozilla Public License 2.0
249 stars 141 forks source link

Create `lizmap-message` component #4484

Closed nboisteault closed 1 month ago

nboisteault commented 1 month ago

Example :

<lizmap-message buttontext="?" type="success" close="true" placement="bottom">
    <h1>Help</h1>
    Lorem ipsum
</lizmap-message>

https://github.com/3liz/lizmap-web-client/assets/2145040/38b80157-ef01-4655-93fc-13339e76be67

Funded by PNR BV

mdouchin commented 1 month ago

Thanks for this.

I would prefer to use

<lizmap-message type="success" close="true" placement="bottom" allowhtml="true" button_text="?">
    <h1>Help</h1>
    <p>Lorem ipsum</p>
</lizmap-message>

instead of

<lizmap-message message="<h1>Help</h1>Lorem ipsum" type="success" close="true" placement="bottom" allowhtml="true">?</lizmap-message>