This repository has been archived by the owner. It is now read-only.
Port modular javascript framework from transition #3
Conversation
* Originally written in alphagov/transition#192 * Rename global from GOVUK to GOVUKAdmin to avoid clashes with existing JavaScript within applications * Using GOVUKAdmin makes it clearer when apps are using the gem’s javascript * Include useful modules: * Automatically show bootstrap modals on page load * Automatically track Google Analytics events on page load * Filter the contents of a table * Fix a table’s header when scrolling * Select items in a table and perform an action on them * A simple toggle for hiding/showing — toggles target elements
I really like the JAVASCRIPT.md |
jamiecobbett
added a commit
that referenced
this pull request
May 22, 2014
Port modular javascript framework from transition
fofr
added a commit
to alphagov/govuk_frontend_toolkit
that referenced
this pull request
Nov 11, 2015
Find and auto-start modules specified using the `data-module=""` pattern in markup. Each module must register a constructor with GOVUK.Modules and have a `start` method. The start method receives the element that the data attribute is defined on. This makes it easier to limit modules to their containers and to start modules within certain elements We can also remove inline script tags and stop worrying about instantiation. Based on the govuk_admin_template: alphagov/govuk_admin_template#3
fofr
added a commit
to alphagov/govuk_frontend_toolkit
that referenced
this pull request
Nov 11, 2015
Find and auto-start modules specified using the `data-module=""` pattern in markup. Each module must register a constructor with GOVUK.Modules and have a `start` method. The start method receives the element that the data attribute is defined on. This makes it easier to limit modules to their containers and to start modules within certain elements We can also remove inline script tags and stop worrying about instantiation. Based on the govuk_admin_template: alphagov/govuk_admin_template#3
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
JavaScript within applications
javascript