alphagov / govuk-frontend-docs

Technical documentation for GOV.UK Frontend
https://frontend.design-system.service.gov.uk/
36 stars 11 forks source link

Update 'Import JavaScript' page to use new `createAll` function #443

Closed romaricpascal closed 6 months ago

romaricpascal commented 6 months ago

[!WARNING] This PR should only be merged after the next release of GOV.UK Frontend

Updates the Frontend docs to reflect the addition of a new createAll function to initialise all instances of a specific component on the page.

Also moves the 'Initialise only part of a page' to the 'Import JavaScript' page, rather than 'Configure components' to regroup both how to import and initialise components.

Each commit details the changes of a specific page.

Closes alphagov/govuk-frontend#4945

netlify[bot] commented 6 months ago

Deploy Preview for govuk-frontend-docs-preview ready!

Name Link
Latest commit 908b2b8fd009d4df8eb8b589ca1bd55cfa5c0985
Latest deploy log https://app.netlify.com/sites/govuk-frontend-docs-preview/deploys/663df3aa8441f9000839a54b
Deploy Preview https://deploy-preview-443--govuk-frontend-docs-preview.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 6 months ago

Deploy Preview for govuk-frontend-docs-preview ready!

Name Link
Latest commit e524c69263b6bfdfc067ed44667f244a0a2f53c8
Latest deploy log https://app.netlify.com/sites/govuk-frontend-docs-preview/deploys/6641cf8727c15f00083b5281
Deploy Preview https://deploy-preview-443--govuk-frontend-docs-preview.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.