Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter bootstrap - Make a table row inactive

Hi I want to make a row in a table inactive. Even if it is easy to hack by myself and add a custom css with the same colour of the inactive elements of my current theme I think it can be handles by bootstrap itself.

Any suggestions?

like image 521
nkint Avatar asked May 13 '14 09:05

nkint


People also ask

How do I turn off TR in HTML?

statuscheck select, tr. statuscheck textarea"). prop('disabled', false); The above code lines disable/enable all input , select and textarea elements inside a tr tag with class statuscheck .

What is table striped?

.table-striped. Adds zebra-striping to any table row within <tbody> (not available in IE8) Try it. .table-bordered. Adds border on all sides of the table and cells.

What makes bootstrap striped table?

Use the combination of table and table-stripped classes within the <table> tag to create a striped table.

What is table responsive in bootstrap?

Responsive TablesThe .table-responsive class creates a responsive table. The table will then scroll horizontally on small devices (under 768px).


1 Answers

Bootstrap has a few elements you might find helpful:


Use contextual classes to change row colors:

<!-- On rows -->
<tr class="active">...</tr>
<tr class="success">...</tr>
<tr class="warning">...</tr>
<tr class="danger">...</tr>
<tr class="info">...</tr>

<!-- On cells (`td` or `th`) -->
<tr>
  <td class="active">...</td>
  <td class="success">...</td>
  <td class="warning">...</td>
  <td class="danger">...</td>
  <td class="info">...</td>
</tr>

http://getbootstrap.com/css/#tables-contextual-classes


Use contextual colors to change the color of text:

<p class="text-muted">...</p>
<p class="text-primary">...</p>
<p class="text-success">...</p>
<p class="text-info">...</p>
<p class="text-warning">...</p>
<p class="text-danger">...</p>

http://getbootstrap.com/css/#helper-classes-colors


The disabled element is primary for form elements and buttons. Check that out here,

like image 160
morganjlopes Avatar answered Oct 11 '22 14:10

morganjlopes