How to add custom html field to the editor.

How to add custom html field to the editor.

ziv@kpmbro.comziv@kpmbro.com Posts: 73Questions: 28Answers: 4

Hi.

I want to show a link based on the cell value that been clicked in the editor,(pic attach).

what is the best way to this?

can I do it via the editor fields array?

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin

    The only option I can really thing of is that you use a custom field type that will simply show the value as a link and now allow any input (the server-side script would just ignore that field).

    However, it would be positioned below your text input. It would probably be possible using CSS and absolute positioning to make the link appear above the button, but it would need to be specific to that field.

    Regards,
    Allan

  • ziv@kpmbro.comziv@kpmbro.com Posts: 73Questions: 28Answers: 4

    Thanks Allan.

    I end up using the rendering form the server with the getFormatter.

    Now i am trying to pre-filter on the page that the link send me.

    i try using this

    table.columns(key).search(res).draw();
    

    but it not working...

    what is the best way for doing that?

    ( Do the page i am trying to pre-filter must have filter on the id column? )

  • allanallan Posts: 61,697Questions: 1Answers: 10,102 Site admin
    Answer ✓

    To pre filter a column use searchCols.

    Allan

This discussion has been closed.