The Digital Framework is a solution to having reusable brand-compliant User Interfaces without touching a line of code.
These solutions can be grouped in to 2 different areas:
These are grouped into User Interface components and User Interface Utilities.
Although JavaScript is not in the distributed assets, there are multiple ways to still use JavaScript easily. To keep platform agnostic we provide JavaScript support classes that can be applied to JavaScript components. These are all documented above the component under the "JavaScript support classes" section. For example:
JavaScript Support class name | Description |
---|---|
slb-show |
Add the show class to the modal container to display the modal, removing the class will display nothing. |
Alternatively, you can use Bootstraps JavaScript.
For the first production ready release of the Digital Framework a strategic decision was made early on not to provide JavaScript support. There were several reasons for this:
This doesn't mean there won't be JavaScript support in future releases, it is on the road plan and work will begin to understand the scope of the requirements soon. This will be a collaborative process and we will be asking for help and contributions as well as sharing decisions and progress.
There are many ways you can use the toolkit. To get the most out of the toolkit we recommend you use NPM. This can be done with the following command in any npm project.
npm install --registry http://nexus.mlsdev.standardlife.co.uk/nexus/content/groups/npm-all/ @web-dev/digital-framework