Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

DataTables pagination with v8.1


Hi all,
in Metronic: v8.0 was:

.page-item .page-link { min-width: 2.5rem; }


while in Metronic v8.1 is:

.page-item .page-link { width: 2.5rem; }


This causes issues with custom labels (e.g. 'Previous' instead of '<').


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (4)


Hi,

Can you please double check the updated markup of the pagination with labels.


<ul class="pagination">
<li class="page-item previous disabled">
<span class="page-link page-text">Previous</span></span>


Regards.



I know Sean but the problem is with DataTables. Pagination is automactically handled by (DataTables) script, so I don't have any markup to update.
Should I change the "dom" option?
Mine is "dom: "rt<'d-flex justify-content-between'lp>",

Thank you,
Paolo



Hi,

Noted, we will double-check this and update you shortly.

Regards.



Hi,

As per our checking we confirm that you can fix it in src/sass/components/_pagination.scss by changing width to min-width and recompile the assets. We will push this fix in the next update.

Regards.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(