-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add date picker block #36
Comments
Perhaps we should also add a time block. Or a timestamp block. And another proposal from the blockly forum:
|
@cymplecy, @jsccjj, This module is added as a dependency in our node, so it is automatically installed. Our endpoint serves the files to the browser. Short demo of the standard date picker, which I have added to our "Date/time" category: P.S. It always uses format yyyy-mm-dd, which can be passed directly to the Date constructor (as you can see in the generated Javascript code). Weekend is over ;-( |
It looks nice :) |
I'm going to close this issue. If it doesn't work as expected, it can be reopened afterwards. |
Beside to the timestamp-block, it would be nice if a user could enter a date/time in a datetime picker:
This is supported by Blockly as the field_date block:
However got an error that the field_date widget doesn't exist. Seems that that widget increases the library size with 30%, so Google has commented it. When you want to use it, you need to uncomment those lines and build Blockly yourself again. There is a proposal for a workaround (widget in a separate .js file), but don't think that is available yet...
Here is the explanation by Andrew.
The text was updated successfully, but these errors were encountered: