[Vuejs]-Vue js attributes in xpage Vue.js

0👍

This

<xp:span
    id="clickSpan">
    {{row.name }}
    <xp:this.attrs>
        <xp:attr
            name="v-on:click"
            value="alert('ok')"
            rendered="true" />
    </xp:this.attrs>
</xp:span>

renders

<span id="view:_id1:clickSpan" v-on:click="alert('ok')">{{row.name }}</span>

So, it works.

I guess you have a syntax error in source panel and your changes don’t take effect yet.

Leave a comment