Rev 1348 | Rev 1365 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1348 | Rev 1349 | ||
---|---|---|---|
Line 210... | Line 210... | ||
210 | * @param bool $active |
210 | * @param bool $active |
211 | * @return string |
211 | * @return string |
212 | */ |
212 | */ |
213 | public function tabBarElement(string $id, string $title, bool $active): string { |
213 | public function tabBarElement(string $id, string $title, bool $active): string { |
214 | // data-bs-toggle is for Bootstrap 5 |
214 | // data-bs-toggle is for Bootstrap 5 |
215 | // data-toggle is for Bootstrap 4 (InternetExplorer compatibility) |
- | |
216 | return '<li class="nav-item"><a class="nav-link'.($active ? ' active' : '').'" id="'.$id.'-tab" data-bs-toggle="tab" data-toggle="tab" href="#'.$id.'" role="tab" aria-controls="'.$id.'" aria-selected="'.($active ? 'true' : 'false').'">'.$title.'</a></li>'; |
215 | return '<li class="nav-item"><a class="nav-link'.($active ? ' active' : '').'" id="'.$id.'-tab" data-bs-toggle="tab" href="#'.$id.'" role="tab" aria-controls="'.$id.'" aria-selected="'.($active ? 'true' : 'false').'">'.$title.'</a></li>'; |
217 | } |
216 | } |
218 | 217 | ||
219 | /** |
218 | /** |
220 | * @return string |
219 | * @return string |
221 | */ |
220 | */ |