How to hide the search bar in my print window(not the data table print button window)?
How to hide the search bar in my print window(not the data table print button window)?
h3aven
Posts: 3Questions: 2Answers: 0
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<link rel="stylesheet" href="https://cdn.datatables.net/responsive/2.2.1/css/responsive.dataTables.min.css">
<script src="https://cdn.datatables.net/1.10.19/js/jquery.dataTables.min.js"></script>
<script>
$(document).ready( function () {
$('#mytable').DataTable();
} );
</script>
<style>
.dataTables_info{text-align:right; margin:5px 0;}
.dataTables_paginate {
display: block;
text-align: right;
}
.paginate_button{
display: inline-block;
padding: 5px 10px;
background: #fff;
color: #333;
transition:.2s;
}
.paginate_button:hover{
background:#eee;
}
.paginate_button.current{
display: inline-block;
padding: 5px 10px;
background: #4285f4;
color: #fff;
box-shadow: 0 2px 5px 0 rgba(0,0,0,.16), 0 2px 10px 0 rgba(0,0,0,.12);
}
</style>
<script>
printMe = 'yes'
$(document).ready(function(){
loadNavigation('viewPrimaryLink', 'glmaster', 'plsub1', 'Manage Link', 'PrimaryLink');
if($(window).width() < 769){
$('.custom-tab .nav-link:not(.active)').hide();
};
});
</script>
This discussion has been closed.
Answers
Hi @h3aven ,
As you can see, it's not happening here. We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin