My requirement is to zoom the image when mouse hovers over that image
I am using this package in my Angular6 Project: https://www.npmjs.com/package/ngx-image-zoom
Here is the stackblitz editor url: https://stackblitz.com/edit/autocompcus?file=src%2Fapp%2Fapp.component.html
I can't find out where it went wrong.
Thanks in advance
Its working by adding [magnification]="2" for singleimage without adding [fullImage]
Use [zoomMode]="'click'" to enable zoom on click
Use [zoomMode]="'hover'" to enable zoom on hover
I've updated the stackblitz - https://stackblitz.com/edit/autocompcus-j5kujt.
Try using this similar angular image zoom npm package ng-img-magnifier. Here is a working DEMO. This is very easy to implement and fully customizable.
<ng-img-magnifier [thumbImage]='img' [fullImage]='img2'
[top]='top' [right]='right'
[lensWidth]='lensewidth' [lensHeight]='lensheight'
[resultWidth]='resultWidth' [resultHeight]='resultheight'
[imgWidth]='imgWidth' [imgHeight]='imgheight'>
</ng-img-magnifier>
Related
enter image description here
When I run this project in Xcode, 'NSLog(#"view init......")' this line has been executed, but the React component is not displayed in iOS simulator. Please help or try to give some ideas how to achieve this, thanks in advance!
I had resolved this problem. I missed the style of this component and also make sure the Width & Height had been set.
Also setting flex: 1 to the style of the component should do the trick.
I'm using TNImageSliderViewController and It's working great. The only problem I have with it doesn't have the ability to auto slides image .For example I need the slides to changes every 2 seconds . But How can I add this ability to it?
thanks
I added "Auto slider" and "Reset from beginning" options to TNImageSliderViewController - and Frederik has merged the changes. So, now you can update using pods.
I've just upgraded my site to the new 3.0 release.
The charts shown on my site are 990x548 pixels.
But when I select an export, regardless of whether it's png/jpg/pdf/svg, the output is 1020x930pixels.
Is this a known bug, or might I be doing something wrong?
Thanks!
Yo can define width / height exported image by chartOptions parameter.
http://api.highcharts.com/highcharts#exporting.chartOptions
the exportButton and printButton are now removed, and replaced with a generic contextButton. So you can use that one for your dropdown menu: http://api.highcharts.com/highcharts#exporting.buttons.
See also the new article at http://docs.highcharts.com/#export-module
Please refer my question
Highcharts 3.0 version changes in exporting options?
The problem was that I didn't have an explicit width set on the chartContainer div. I was just letting it flow to 100% of the parent element. As soon as I set an explicit width on that div, the exporting size options worked. Before that the chart would come out squished regardless of what documented options I set.
I am implementing a webapp using jQuery Mobile and Phonegap. One thing I am missing, is the following: The App should scroll to the top when the statusbar is tapped.
I have already seen that using Objective C one has to indicate the view that has to scroll to top on tap. Is it possible to do something similar with Javascript/Phonegap?
Update for 22.9.2016
It's working fine
Plugin ID has changed, install it using:
cordova plugin add cordova-plugin-statusbar
Tested with cordova-6.3.1 cordova-ios-4.2.2 in the iOS 10.0 simulator and an iPhone 6s Plus running 9.3.5.
The official status-bar plugin has this feature.
https://github.com/apache/cordova-plugin-statusbar
Install:
cordova plugin add org.apache.cordova.statusbar
In your javascript:
window.addEventListener('statusTap', function() {
//scroll-up or do whatever you want
});
I wrote a plugin to solve this issue
https://github.com/j-mcnally/cordova-statusTap
you can register tap events on the status bar and handle this all in code. With an event listener.
if the content that you are displaying in the phonegap app is bigger then the bounds of the webview, the scroll happens automatically.
Otherwise - for example if you are just scrolling a div using -webkit-overflow-scrolling - you need to use the solution found here:
How to detect touches in status bar
In the scrollViewShouldScrollToTop you need to call
[theWebView stringByEvaluatingJavaScriptFromString:"should_scroll_to_top"];
should_scroll_to_top is a normal function in your js.
I want to zoom image in blackberry torch.For this i am using ZoomScreen predefined class.It working but my problem is i need a screen which can contain header,some text and then one image which can be zoom in and out.
Thank you
ZoomScreen extends MainScreen, so you can set a title and a status for it by adding setTitle() and setStatus() functions. You can use normal adds too. Did you try this and did not work?