PrimeUI 4.1.15 + DataTable + Laravel 5.5

jQuery UI Widgets
Post Reply
lionkingy
Posts: 3
Joined: 17 Mar 2017, 08:14
Location: Hong Kong

28 Feb 2018, 11:58

Dear Sir,

I am trying to integrate PrimeUI into Laravel 5.5, everything seems OK except using the template function for defining custom column.

It is my understanding that PrimeUI utilize mustache.js which use {{}} that might collide with laravel blade {{}} expression. Any input on this is appreciated. Many thanks.

PrimeUI: 4.1.15
Laravel 5.5
PHP: 7.2

Code: Select all

<p-column field="color" headertext="Color" sortable filter> 
        <template>
           <!-- throw error --->        
            <span style="color:{{color}}">{{color}}</span>
        </template>
</p-column>
I tried to use the follows to bypass {{}} in blade, but it did not work either,

Code: Select all

<p-column field="color" headertext="Color" sortable filter> 
        <template>
           <!-- throw error --->        
            <span style="color:@{{color}}">@{{color}}</span>
        </template>
</p-column>

Best Regards,
Frederick

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests