Bootstrap alert on cell data
Bootstrap alert on cell data
Nic
Posts: 1Questions: 1Answers: 0
Hi Alan and All..
is it possible with datatables (ajax data) and bootstrap to show a bootstrap alert or show a div which depends on cell data,
for example if a cell contained the word 'alert' then a hidden div or alert would be shown.
but when the table data gets refreshed (every 60 secs) if the row that contains 'alert' no longer exists then the alert/div would be hidden again ?
been trying to sort this for a week now with no success.
thanks in advance for any response.
This discussion has been closed.
Answers
Sure - I would suggest using
drawCallback
(ordraw
) to run a function when the table is draw, That function can then check in the table to see if there is alert information (a little bit of jQuery could be used for that) and show / hide the div as required.Allan