Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-09 20:02:54 +01:00
17 Zeilen
369 B
JavaScript
17 Zeilen
369 B
JavaScript
import DateInput from "discourse/components/date-input";
|
|
import discourseComputed from "discourse-common/utils/decorators";
|
|
|
|
export default DateInput.extend({
|
|
useNativePicker: false,
|
|
classNameBindings: ["fieldClass"],
|
|
|
|
@discourseComputed()
|
|
placeholder() {
|
|
return this.format;
|
|
},
|
|
_opts() {
|
|
return {
|
|
format: this.format || "LL",
|
|
};
|
|
},
|
|
});
|