Skip to content
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

Date/DateTime/Time based on text field input controls #21

Merged
merged 16 commits into from
Jul 22, 2024

Conversation

ecanchev-jaspersoft
Copy link
Member

@ecanchev-jaspersoft ecanchev-jaspersoft commented Jul 17, 2024

The following components will be the 'default' components for dates. However, the developer can define whether they want this or the 'native' pickers provided by MUI.
For that, they need to define it like this:

        config: {
          singleValueDatetime: {
            type: "datetime", // even if it isn't provided, this will be the default component
          },
          singleValueTime: {
            type: "time", // even if it isn't provided, this will be the default component
          },
          singleValueDate: {
            type: "date"
          }
        }

Note: the type can be changed.

Examples
Date:
image

DateTime:
image

Time:
image

In case you want to use the other Date selectors, provide the params as follows:

        config: {
          singleValueDatetime: {
            type: "datetime_picker",
          },
          singleValueTime: {
            type: "time_picker",
          },
          singleValueDate: {
            type: "date_picker"
          }
        }

the result will be:

Date
image

DateTime
image

Time
image

@grantbacon-jaspersoft grantbacon-jaspersoft merged commit 30a06ca into main Jul 22, 2024
1 check passed
@ecanchev-jaspersoft ecanchev-jaspersoft deleted the date-textfield-input-control branch July 22, 2024 21:11
ecanchev-jaspersoft pushed a commit that referenced this pull request Aug 30, 2024
Date/DateTime/Time based on text field input controls
ecanchev-jaspersoft pushed a commit that referenced this pull request Aug 30, 2024
Date/DateTime/Time based on text field input controls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants