Server Side Custom Rendering Strategy

Server Side Custom Rendering Strategy

smg6511smg6511 Posts: 12Questions: 2Answers: 0

I was wondering, as I work on a project using SSP, what pros or cons there are (if any) between rendering custom column data using columns.render in the DataTable js initialization and a formatter function in the $columns array of the php script passing config options to the SSP class. I would tend to perform my transformations in php, but am unsure if that has an impact on how the table behaves on the front end. Thanks for your insight!

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    Answer ✓

    Hi @smg6511 ,

    If you're rending on the client with columns.render you can use other information in the table or the page as part of that rendering, But other than that, I don't think it makes much difference, other than where your main programming skills (if you like PHP, do it server-side for example).

    Cheers,

    Colin

  • smg6511smg6511 Posts: 12Questions: 2Answers: 0

    OK, got it. Thanks for the clarification!

This discussion has been closed.