cdcharlebois / datepair Goto Github PK
View Code? Open in Web Editor NEWSeparate Date and Time pickers for a Mendix Datetime
Separate Date and Time pickers for a Mendix Datetime
It probably shouldn't reset the value to the earliest selectable date..
When you press the clear button on the widget on a date field, the datetime is reset to 1/1/1970 (unix time).
When just the Earliest Date Attribute is set the widget doesn't reflect the value. I have tried CurrentDateTime
, BeginningOfCurrentDay
and -1 day on both respectively.
When both the earliest (EG BeginningOfCurrentDay
) and latest (EG addDays(BeginningOfCurrentDay, 14)
) attribute is set the entire calendar is greyed out and it goes back to the year 1970.
The values can be retrieved on the page through text widgets and the values are what I expected.
Mendix Version: 8.9
In our implementation of this widget, we're experiencing some weird issues. Even though the field is editable and we can click on it to edit, it is grayed out - like it isn't editable. In other words, the text box that has the date displayed has a gray background instead of a white one.
Currently, it shows the error node for any validation on the page, not just its own context object
The date and time fields should expand to full width (like regular controls) and the validation feedback bar should be below them
The widget seems broken in 7.12 + Atlas UI:
-- When display as modal is true, it does pop up, but behaviour in UI is undesired
-- When display as modal is false, it does not show at all.
Please find reproduction project attached.
https://wetransfer.com/downloads/1c99d17067524b0570d793c95349ba9220180309091409/d40921f2038344ac57bf959c55c2981c20180309091409/9b502b
Widget will start open when page is opened even when setting "Start Open?" set to no.
User is required to use the selection widget. Ideally, they may do that or input the date / time directly into the input field.
When you refresh the context object, in Mx 7.9.0 and 7.13.1, the widget does not render the date and time values anymore. Somehow, this also breaks the rendering / value of the object when you show a default date picker.
On https://datetimerefreshiss.mxapps.io you can see the behaviour:
On the right side of the screen, the normal mendix date picker is shown and keeps the values.
I made a change to line 352:
_setDateTimePickerValues: function(datetime) {
datetime = this._contextObj.get(this.fromDate);
....
}
To make sure the values are obtained from the context object.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.