Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
989 Weergaven

Hi,

how can I customize the chatter using XPath? I’d like to reduce its height and increase its width in order to insert a table inside. I’ve attached an example image.

I was able to reduce the width of the chatter, but how can I insert the table below it?



<xpath expr="//chatter" position="replace">
<chatter
style="min-height: 300px; max-height: 400px; overflow-y: auto; padding-bottom: 1rem; max-width:400px;">
<div style="border: 1px solid red; padding: 10px;">
</div>
</chatter>


Avatar
Annuleer

I've moved the screen if yours to your question and removed it as an answer so your question appears unanswered to others, increasing, theoretically the chance of answers. However, this question probably is beyond the scope of the forum in general (see also https://www.odoo.com/de_DE/forum/hilfe-1/meta-why-do-some-questions-get-answers-and-others-do-not-25620)

Beste antwoord

Hii,


Here's how you can customize the chatter with XPath to adjust its size and insert a table below it without replacing the entire chatter:
<xpath expr="//div[contains(@class, 'o_Chatter')] " position="after">

    <table style="width: 100%; border: 1px solid #ccc; margin-top: 10px;">

        <tr>

            <th>Column 1</th>

            <th>Column 2</th>

        </tr>

        <tr>

            <td>Value A1</td>

            <td>Value A2</td>

        </tr>

        <tr>

            <td>Value B1</td>

            <td>Value B2</td>

        </tr>

    </table>

</xpath>


<xpath expr="//div[contains(@class, 'o_Chatter')]" position="attributes">

    <attribute name="style">min-height: 300px; max-height: 400px; overflow-y: auto; padding-bottom: 1rem; max-width: 400px;</attribute>

</xpath>

i hope it is usefull


Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
aug. 25
2403
1
jul. 25
908
1
aug. 25
1151
0
mei 25
1344
2
apr. 25
3566