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

added radio card, progress bar, datepicker #215

Merged
merged 19 commits into from
Mar 25, 2025
Merged

added radio card, progress bar, datepicker #215

merged 19 commits into from
Mar 25, 2025

Conversation

jcbbb
Copy link
Contributor

@jcbbb jcbbb commented Mar 24, 2025

No description provided.

@jcbbb jcbbb requested a review from diyor28 March 24, 2025 07:07
@jcbbb jcbbb changed the title added radio card added radio card, progress bar Mar 24, 2025
@jcbbb jcbbb changed the title added radio card, progress bar added radio card, progress bar, datepicker Mar 24, 2025
Copy link

cypress bot commented Mar 25, 2025

Default Project    Run #244

Run Properties:  status check passed Passed #244  •  git commit e4472eec7a: Merge pull request #215 from iota-uz/radio-card
Project Default Project
Branch Review main
Run status status check passed Passed #244
Run duration 00m 23s
Commit git commit e4472eec7a: Merge pull request #215 from iota-uz/radio-card
Committer Diyor Khaydarov
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 0
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 3
View all changes introduced in this branch ↗︎

templ DatePicker(props DatePickerProps) {
{{ pageCtx := composables.UsePageCtx(ctx) }}
{{ selected, _ := templ.JSONString(props.Selected) }}
<div x-data={ fmt.Sprintf("datePicker({locale: '%s', mode: '%s', dateFormat: '%s', labelFormat: '%s', minDate: '%s', maxDate: '%s', selectorType: '%s', selected: %s})", pageCtx.Locale.String(), props.Mode, props.DateFormat, props.LabelFormat, props.MinDate, props.MaxDate, props.SelectorType, selected) }>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this be easier to do with templ JSON calling? Like it's done in charts/charts.templ?

Copy link
Contributor Author

@jcbbb jcbbb Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How? fmt.Sprintf("datePicker(%s)", templ.JSONString(props))?

Copy link
Contributor

@diyor28 diyor28 Mar 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, you're not defining the function the same way I do in charts. Event the option you proposed looks better, don't u agree?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check @diyor28

@diyor28 diyor28 merged commit e4472ee into main Mar 25, 2025
2 checks passed
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