Skip to content

Commit ee2b1bf

Browse files
committed
add data-title documentation to readme
1 parent 65bbaab commit ee2b1bf

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ All this work is based on the following assumptions:
7979
* td: responsive-omit-title: title should be ommited
8080
* td: responsive-omit-if-empty: no row for empty cells
8181
* td: responsive-dynamic: add it when there's an `ng-if` directive applied to the element
82+
* td: data-title: use to override the header for a given row/cell
8283

8384
## Installation
8485

@@ -99,6 +100,16 @@ All this work is based on the following assumptions:
99100

100101
## Special cases
101102

103+
### Header doesn't appear for a row / need to override header
104+
105+
It's possible to override a header with a `data-title` attribute:
106+
107+
<tr>
108+
<td data-title="column 1">tom</td>
109+
<td data-title="column 2">jerry</td>
110+
</tr>
111+
112+
102113
### Column can be shown/hidden with ng-if
103114

104115
Also, more than one `td` exist for a single `th`...to deal with this add a `responsive-dynamic` attribute:

0 commit comments

Comments
 (0)