Note that there are some explanatory texts on larger screens.

plurals
  1. POMVCContrib pager images
    primarykey
    data
    text
    <p>I am able to use the MVCContrib Grid Pager as in the following sample</p> <pre><code>Html.Pager(Model.CustomerList) .First("First") .Last("Last") .Next("Next") .Previous("Previous") </code></pre> <p>Is there any way to modify the links to show clickable images instead of plain text?</p> <p><strong>EDIT</strong></p> <p>I have applied Darin solution and it works very nice except for the image not being showed by the browser. This is the markup generated by the pager helper</p> <pre><code>&lt;div class="pagination"&gt; &lt;span class="paginationLeft"&gt;1-2 di 4&lt;/span&gt; &lt;span class="paginationRight"&gt; &lt;span class="first"&gt;&lt;/span&gt; | &lt;span class="previous"&gt;&lt;/span&gt; | &lt;a href="/x/Hearing/HomeSummary?page=2"&gt; &lt;span class="next"&gt;&lt;/span&gt; &lt;/a&gt; | &lt;a href="/x/Hearing/HomeSummary?page=2"&gt; &lt;span class="last"&gt;&lt;/span&gt; &lt;/a&gt; &lt;/span&gt; &lt;/div&gt; </code></pre> <p>and these are the CSS rules defined</p> <pre><code>.pagination span.paginationRight span.first { width: 12px; height: 12px; background-image: url('../images/disabled-pager-first.png') } .pagination span.paginationRight span.next { width: 12px; height: 12px; background-image: url('../images/disabled-pager-next.png') } .pagination span.paginationRight span.last { width: 12px; height: 12px; background-image: url('../images/disabled-pager-last.png') } .pagination span.paginationRight span.previous { width: 12px; height: 12px; background-image: url('../images/disabled-pager-previous.png') } .pagination span.paginationRight a span.first { width: 12px; height: 12px; background-image: url('../images/pager-first.png') } .pagination span.paginationRight a span.next { width: 12px; height: 12px; background-image: url('../images/pager-next.png') } .pagination span.paginationRight a span.last { width: 12px; height: 12px; background-image: url('../images/pager-last.png') } .pagination span.paginationRight a span.previous { width: 12px; height: 12px; background-image: url('../images/pager-previous.png') } </code></pre> <p>As you can see from the following images the correct CSS rules match the markup generated. Still I can't see images on the browser. Any idea?</p> <p>For disabled images <img src="https://i.stack.imgur.com/yiCEm.png" alt="alt text"></p> <p>For enabled images <img src="https://i.stack.imgur.com/liLoA.png" alt="alt text"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload