Navigation Bar Back Button Arrow Font Swift - swing

So I manage to change the font of the back button as said in this post
but now I have two arrows(<), one is the back button default arrow and the other is the button title arrow ("< Back").
How do I remove/change the back button default arrow to the font want?

One way is to create a transparent graphic and set it as the background image of your Backbutton.
So your code should look like this:
let backButton = UIBarButtonItem(title: "< back", style: UIBarButtonItemStyle.Plain, target: self, action: nil)
backButton.setTitleTextAttributes([NSFontAttributeName: UIFont(name: "RobotoCondensed-Light", size: 20)!], forState: UIControlState.Normal)
backButton.setBackButtonBackgroundImage(UIImage(named: "transparent_1px.png"), forState: UIControlState.Normal, barMetrics: UIBarMetrics(rawValue: 0)!)
navigationItem.backBarButtonItem = backButton

Related

Why SVG image is not working as background image?

I want to set a svg image as background image in my React project. However the code is not working. I have tried the following ways:
import log_bg from './Login background.svg'
useEffect(() => {
document.body.style.background = `url(${log_bg})`
}, [])
Method 2.
<div style = {{backgroundImage: `url(${log_bg})`}}>
TEXT
</div>
I have also tried using only background tag instead of backgroundImage. I have also tried background: log_bg [also backgroundImage: log_bg], but it also does not works. How to fix this?

react js Button hide HTML title default tooltip for React JS using CSS

I got many buttons that I need to disable or hide the HTML default tooltip which results from the title attribute in the <Button title='test'></Button>
I read several posts here that advise using the CSS pointer-events which disables the the hover tooltip but also the button click. <Button title='test' style={{pointer-events: none}}></Button>
I could not find any posts here on remove the title attribute from the button in React component like removeAttr('title') so I move on to
trying to hide the HTML Tooltip content box and text with styling the tooltip border, text, and background to white with something like this
const buttonStyle = {
hover: {
color: '#fff", backgroundColor: '#fff'
}
//'&:hover':{
// color: '#fff", backgroundColor: '#fff'
//}
}
tried both hover: and '&:hover' : {} with white background to hide the html tooltip, but the styling is not taking effect.
<Button title='test' style={buttonStyle}></Button>
So far no luck and removing the title attribute from button control is not an option.

content page with form

i have like 4 textbox with required and i have a button name ‘add’ and another button for open a new page ..
the problem is where i’ m clicking at the button who open the new page they tell me to fill the text box .. is there any way to make the required working just for the « add » button ?
ps: í’m using content place holde and i already triyed to use but still not working
set the line width to zero...
series: {
5: {
type: 'line',
lineWidth: 0
}
}

Background color of html is not comming in default print dialoag box

I have create one div, inside that there are some css applied (through the css file). Now I want to print that particular div from the whole page. The problem which I'm facing that all the css classes are applied in print dialog but background color is not applied.
Here is my code block of print button which opens a default print dialog:
$("#btnPrint").click(function () {
var contents = $("#Call").html();
var frame1 = $('<iframe />');
frame1[0].name = "frame1";
frame1.css({ "position": "absolute", "top": "-1000000px" });
$("body").append(frame1);
var frameDoc = frame1[0].contentWindow ? frame1[0].contentWindow : frame1[0].contentDocument.document ? frame1[0].contentDocument.document : frame1[0].contentDocument;
frameDoc.document.open();
//Create a new HTML document.
frameDoc.document.write('<html><head><title>Call</title>');
frameDoc.document.write('</head><body>');
//Append the external CSS file.
frameDoc.document.write('<link href="../css/abc.css" rel="stylesheet" type="text/css">');
//Append the DIV contents.
frameDoc.document.write(contents);
frameDoc.document.write('</body></html>');
frameDoc.document.close();
setTimeout(function () {
window.frames["frame1"].focus();
window.frames["frame1"].print();
frame1.remove();
}, 500);});
Here is the my div on page:
Here is the print dialog which shows the preview of the div:
Please help me to apply background print dialog.
Thanks
Option 1:-
If you dont mind about browser compatibility then use
-webkit-print-color-adjust: exact;
this will work only in chrome
Option 2:-
To make it printable(with image and colors) in all browsers you have to make the whole printing elements without background image and background colors.
Instead of them use image tag and border colors with #media print (read more)
Manual Options:-
you have to manually check the print background (Chrome : "background graphics", Firefox : "Print Background") while printing. this will display both background colors and background images. we can not control printing through code if you concern about browser compatibility.
Chrome:-
Firefox:-
[
for chrome and safari you can force printing background color by -webkit-print-color-adjust property rule, for example
body {
-webkit-print-color-adjust: exact;
}
read more about it here

Set CSS for disabled button in DOJO

Here is the image which says it all. I am trying to set the text color for the disabled button from #EEEEEE to black, but I cant seem to locate it via css. Any help will be greatly appriciated.
I added the line to color * to #EEEEEE, so I dont want to override that just change the color if the button is disabled.
Use CSS Cascading. Something like this:
.dijitButtonDisabled .dijitButtonNode .dijitButtonText{
color: #000;
}
With the assumption that memberDetailsBtnBar is root of the element tree shown in the image, the above rule will override your rule only if the button is in disabled state.
Use the following CSS
.dijitButtonDisabled .dijitButtonText{
color: black;
}
Live example: https://jsfiddle.net/Lzrzoor5/1/
require(["dijit/form/Button", "dojo/dom", "dojo/domReady!"], function(Button, dom){
// Create a button programmatically:
var myButton = new Button({
label: "Click me!",
disabled: true,
style: 'color: red'
}, "progButtonNode").startup();
});