xuganyu96 commented on code in PR #31141:
URL: https://github.com/apache/airflow/pull/31141#discussion_r1191467683
##########
airflow/www/widgets.py:
##########
@@ -40,6 +40,9 @@ class AirflowDateTimePickerWidget:
"</div>"
)
+ def __init__(self, input_required: bool = True):
Review Comment:
Thank you for the feedback.
I am not entirely familiar with using JS to control attributes of an HTML
tag. My intended use case is "outside" the Airflow codebase, such as with
developing plugins. For relatively simple plugins it would be great to use
widgets with Flask/Jinja2 and not have to work with JS, which is why I want to
parameterize the `required` attribute with Python instead of anywhere else.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]