question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

govukDateInput macro could have default `items`

See original GitHub issue

The majority of the time, you want Day, Month, Year, so we could just have that as the default without the user having to specify items

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
joelanmancommented, May 22, 2018

pseudo code:

if (params.items == undefined){
	params.items = [
		{
			name: 'day'
		},
		{
			name: 'month'
		},
		{
			name: 'year'
		}
	]
}

0reactions
NickColleycommented, May 21, 2018

Hey Joe,

This seems useful but without the proposal I’m not sure how we can make changes.

I’m going to close for now but feel free to re-open with your proposal in code.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error message - GOV.UK Design System
Defaults to 'Error'. Summarise all errors at the top of the page the user is on using an error summary. There are 2...
Read more >
More efficient prototyping with the GOV.UK prototype kit
For example, a service I'm working on uses the task list pattern. As there's no macro for it, I've made my own (in...
Read more >
Date input – GOV.UK Frontend Jinja Demo
With default items · Jinja macro options. {'id': 'dob', 'namePrefix': 'dob', 'fieldset': {'legend': {'text': 'What is your date of birth? · HTML. <div...
Read more >
https://raw.githubusercontent.com/alphagov/govuk-f...
If you're not using Nunjucks macros, you can use data-* attributes to provide ... Style any custom HTML in your cookie banner We've...
Read more >
Date input - NHS digital service manual
Form elements - Date input. Use date input to help users enter a memorable date, like their date of birth. Open this default...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found