Ich möchte Wickedpicker in Aurelia verwenden. Ich habe die folgenden Codes in HTML-Datei:Mit Wickedpicker in Aurelia
<require from="wickedpicker"></require>
<input type="text" name="timepicker" class="timepicker"/>
...
Und in View-Modell ich diesen Code haben:
import "wickedpicker"
.
.
constructor(){
let options = {
now: "12:35", //hh:mm 24 hour format only, defaults to current time
twentyFour: false, //Display 24 hour format, defaults to false
upArrow: 'wickedpicker__controls__control-up', //The up arrow class selector to use, for custom CSS
downArrow: 'wickedpicker__controls__control-down', //The down arrow class selector to use, for custom CSS
close: 'wickedpicker__close', //The close class selector to use, for custom CSS
hoverState: 'hover-state', //The hover state class to use, for custom CSS
title: 'Timepicker', //The Wickedpicker's title,
showSeconds: false, //Whether or not to show seconds,
timeSeparator: ' : ', // The string to put in between hours and minutes (and seconds)
secondsInterval: 1, //Change interval for seconds, defaults to 1,
minutesInterval: 1, //Change interval for minutes, defaults to 1
beforeShow: null, //A function to be called before the Wickedpicker is shown
afterShow: null, //A function to be called after the Wickedpicker is closed/hidden
show: null, //A function to be called when the Wickedpicker is shown
clearable: false, //Make the picker's input clearable (has clickable "x")
};
let timepicker = $('.timepicker').wickedpicker(options);
I wickedpicker über jspm (jspm installieren npm: wickedpicker) installiert und wenn ich auf Eingabefeld gibt es keinen Effekt und keinen Fehler. Könnten Sie mir bitte helfen?
Vielen Dank. Ich habe es hinzugefügt hinzugefügt und jetzt kann ich die Zeit sehen (zum Beispiel 21:25). Aber wenn ich klicke, funktioniert es nicht. Ich sehe nur die Zeit (21:35) in einer Irrelevat POSIOSION und PICKER funktioniert nicht. Was ist das Problem??? – Sohrab
Irgendwelche Fehler jetzt? Es wäre das Beste, das Problem in [GistRun] (https://gist.github.com/jdanyow/7542e061bc940cde506b) zu reproduzieren, indem man das [base sample gist] verwendet (https://gist.github.com/jdanyow/7542e061bc940cde506b) . –