I want to make a custom year range using react datepicker same img as below, how do I do that?enter image description here
now, I don't know the solution to it, please help me!
Related
I have a UIImagePickerController which with it I select a photo from Library, or take a photo with Camera and then show the selected photo in a UIImageView. I want to upload this photo later to an API (which still don't know how to upload photos, have never done it).
So what I want is a feature like WhatsApp selecting photos feature which you can select let's say 20 photos and then you can see them. (I mean for my case I only have one UIImageView and can only show one photo.
What is the solution? please keep in mind that I want to upload this photos later.
Thanks in advance
As Ethan Halprin commented, I used https://github.com/hyperoslo/ImagePicker and it solved my issue. It looks really nice and I think the customer will like it :)
I also found TLPhotoPicker and DKImagePickerController helpful since the Hyperosolo's image picker is deprecated DKImagePickerController and TLPhotoPicker was a good choice left in swift.Some other references :-
More helpful answer
am looking to customize the ion-toggle, to show custom text. I need it to say Yes/No. Tried looking for solutions and found that we can use ion-toggle-text. But that solution does not seem to work in ionic2. Below is the code snippet am using. Tried to use ng-true-value but did not work either.
<ion-toggle ion-toggle-text="Yes;No" ng-true-value="Yes" ng-false-value="No">
</ion-toggle>
I could not find anything related to this in ionic documentation for ion-toggle.
Can you pls let me know how do I achieve this functionality?
ion-toggle-text paramter was only available in ionic 1 . For ionic 2 and later, you cannot place text on toggle.
If you want to make a custom button, the best way to make your own toggle button on a pattern described here : https://www.w3schools.com/howto/howto_css_switch.asp and then add text within it.
I m working on charts using the chart.js library. I want to show image gallery like a carousel on click of any segment of pie/doughnut chart. I'm not able to find the proper solution. Please suggest some solution
If I understand correctly what you are trying is to trigger an event after user clicks on chart segment. chart.js has this prototype method getElementAtEvent(); See the documentation.
It seems as a good place to start - you could create some function to open image gallery and call it there.
And the gallery/slider implementation is a separate issue, but if you are using some of the popular ui libraries some of them have a solution for that already. Bootstrap, for example has carousel, and JQuery has many plugins for that purpose. Here are some examples. Hope this helps...
I'm working on a sitecore project where i'm using WFFM (Web Forms For Marketers), I have a form and would like to change the styling of a date picker. By default it appears with -'s. I ant /'s.
One way would be:
$('.scfDatePickerTextBox').val().replace(/-/g,'/')
Theres no option to change the styles? that I know of? Any help guidance would be grateful.
When using WFFM as your forms builder i think it is not possible to style the dateformat.
When adding a date field, it always shows up as three droplists:
see this image: http://content.screencast.com/users/MoonCrawler/folders/Jing/media/627a9a76-de8d-4ad7-9097-81e21d38f54c/2013-01-30_1658.png
If you want to change styles (display) assign different css class. if your date is displayed with -'s in stead of /'s then i think you are using a custom form, you should be able configure the output of the date via the code behind file.
if this does not help, please provide sitecore version, WFFM version and type of form used.
Hi
I am using an Event Calendar wirtten in Django http://www.3captus.com/download/django_calendar and it is working great expect the time format is showing up wrong. Instead of showing "12:00:00" it is showing "noon" instead, can someone figure out what is wrong.
If you are talking about the formatting of a date in your templates then you can adjust the format easily with the builtin date filter.
Make sure to also check your TIME_FORMAT setting.