Concatenate HTML in mData(Prop)

Concatenate HTML in mData(Prop)

nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
edited October 2012 in General
Hi Allan,

How would I generate HTML on the fly in mDataProp?

The idea is that tags are added to a column, so that it becomes a hyperlink instead of flat text? Should I generate the HTML client-side (JS), server-side (PHP) or store it as a hyperlink in the database (rather not; presentation and data should be separated).

Cannot find an example of this. You have one where "Edit" is sDefaultContent; but I want the actual live column name to be a hyperlink which triggers an edit form (ideally, envelope).

/N

Replies

  • nskwortsownskwortsow Posts: 120Questions: 0Answers: 0
    I think I found it through:


    "mRender": function ( data, type, full ) {
    return 'Download';
    }
  • allanallan Posts: 63,535Questions: 1Answers: 10,475 Site admin
    Yup - mRender is the way to do this :-)

    Allan
This discussion has been closed.