Coloração do Background de acordo com o dado

Coloração do Background de acordo com o dado

joao_oliveirajoao_oliveira Posts: 32Questions: 0Answers: 0
edited November 2013 in General
Estou precisando exibir dados num datatable que será exibida numa TV de 45 polegadas, onde serão mostrados Data e Hora Inicial da Cirurgia, Nome do paciente, Convênio, Nome do Cirurgião, Nome do Anestesista, Procedimento e Status. Os status podem ser cinco diferentes. Como faço para mudar o background da linha para cada tipo de Status. Obs: Os status são dinâmicos, sendo carregados diretamente do banco Oracle.

Replies

  • fulltonjfulltonj Posts: 4Questions: 1Answers: 0
    A quick translation, via google, if someone can help.

    I need to display data in a datatable that will be displayed in a 45-inch TV, which will be shown Date and Start Time of Surgery, Patient Name, Agreement, Name Surgeon Name Anesthetist, Procedure and Status. The status can be five different. How do I change the background of the line for each type of status. Note: The status is dynamic and is loaded directly from the Oracle database.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    I would suggest using the fnRowCreated callback - that can be used to modify the DOM node for the row based on its data.

    Allan
  • joao_oliveirajoao_oliveira Posts: 32Questions: 0Answers: 0
    Allan, show me an example of how it could work?
This discussion has been closed.