Altering the HTML of page length

Altering the HTML of page length

BusterenBusteren Posts: 52Questions: 17Answers: 4

Hi, anyone has an example or can link to a page where I can find out more about modifying the HTML around the page length?
I want to insert some div's around it etc. So I was wondering if there is someone who has done this, or got any examples?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736

    I think the dom option is what you are looking for.

    Kevin

  • BusterenBusteren Posts: 52Questions: 17Answers: 4

    I am using the dom option, but I was looking for a way to not have the "Per page" text inside the select, and rather place it somewhere else. Is this doable? Or should I modify it with JS in some callback instead?

  • kthorngrenkthorngren Posts: 20,144Questions: 26Answers: 4,736
    Answer ✓

    I'm not sure what it would take to modify the page length input. I wonder if it would be easier to create your own then use the page.len() API to set the length.

    Kevin

  • BusterenBusteren Posts: 52Questions: 17Answers: 4

    Oh cheers, that's a good shout! Managed to get something satisfactory working, but might try that solution :smile:

    Thank you for your help.

This discussion has been closed.