Closed thakools closed 5 years ago
Can you try (whitespace before @
):
<th scope="col"> @sortablelink('email', 'อีเมล์')</th>
Because I can not reproduce; well in a way:
Psy Shell v0.9.9 (PHP 7.3.9 — cli) by Justin Hileman
>>> $expression = "'email','อีเมล์'";
=> "'email','อีเมล์'"
>>> $expression = ($expression[0] === '(') ? substr($expression, 1, -1) : $expression;
=> "'email','อีเมล์'"
>>> eval("echo \Kyslik\ColumnSortable\SortableLink::render(array ({$expression}));");
<a href="http://localhost?sort=email&direction=asc" >อีเมล์</a> <i class="fa fa-sort"></i>⏎
=> null
I tried adding space before @, i didn't work. However, It works when I add space before Thai words
Can we close this? I am not sure what I can do about this. If you find out a better solution please consider making PR.
Try like this. 'อีเมล์'===> ' อีเมล์' It will be working!
For example, I'd like to replace email with 'อีเมล์' (in Thai language) but it shows up blank.
I'm using version 6.0.0
<th scope="col">@sortablelink('email','อีเมล์')</th>