govuk_publishing_components 12.0.0 → 12.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +1 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/all.js +188 -0
- data/node_modules/govuk-frontend/components/_all.scss +1 -0
- data/node_modules/govuk-frontend/components/back-link/README.md +12 -12
- data/node_modules/govuk-frontend/components/breadcrumbs/README.md +18 -18
- data/node_modules/govuk-frontend/components/button/README.md +30 -30
- data/node_modules/govuk-frontend/components/button/template.njk +1 -1
- data/node_modules/govuk-frontend/components/character-count/README.md +497 -0
- data/node_modules/govuk-frontend/components/character-count/_character-count.scss +31 -0
- data/node_modules/govuk-frontend/components/character-count/character-count.js +1201 -0
- data/node_modules/govuk-frontend/components/character-count/macro-options.json +83 -0
- data/node_modules/govuk-frontend/components/character-count/macro.njk +3 -0
- data/node_modules/govuk-frontend/components/character-count/template.njk +32 -0
- data/node_modules/govuk-frontend/components/checkboxes/README.md +57 -57
- data/node_modules/govuk-frontend/components/date-input/README.md +36 -36
- data/node_modules/govuk-frontend/components/details/README.md +18 -18
- data/node_modules/govuk-frontend/components/error-message/README.md +12 -12
- data/node_modules/govuk-frontend/components/error-summary/README.md +24 -24
- data/node_modules/govuk-frontend/components/fieldset/README.md +21 -21
- data/node_modules/govuk-frontend/components/file-upload/README.md +24 -24
- data/node_modules/govuk-frontend/components/footer/README.md +51 -51
- data/node_modules/govuk-frontend/components/header/README.md +42 -42
- data/node_modules/govuk-frontend/components/header/_header.scss +2 -0
- data/node_modules/govuk-frontend/components/hint/README.md +12 -12
- data/node_modules/govuk-frontend/components/input/README.md +27 -27
- data/node_modules/govuk-frontend/components/inset-text/README.md +12 -12
- data/node_modules/govuk-frontend/components/label/README.md +15 -15
- data/node_modules/govuk-frontend/components/panel/README.md +15 -15
- data/node_modules/govuk-frontend/components/phase-banner/README.md +12 -12
- data/node_modules/govuk-frontend/components/radios/README.md +60 -60
- data/node_modules/govuk-frontend/components/radios/_radios.scss +1 -0
- data/node_modules/govuk-frontend/components/select/README.md +39 -39
- data/node_modules/govuk-frontend/components/select/_select.scss +1 -1
- data/node_modules/govuk-frontend/components/skip-link/README.md +12 -12
- data/node_modules/govuk-frontend/components/table/README.md +45 -45
- data/node_modules/govuk-frontend/components/table/macro-options.json +12 -0
- data/node_modules/govuk-frontend/components/table/template.njk +7 -3
- data/node_modules/govuk-frontend/components/tabs/README.md +30 -30
- data/node_modules/govuk-frontend/components/tag/README.md +9 -9
- data/node_modules/govuk-frontend/components/textarea/README.md +30 -30
- data/node_modules/govuk-frontend/components/warning-text/README.md +12 -12
- data/node_modules/govuk-frontend/package.json +11 -11
- metadata +8 -2
@@ -0,0 +1,83 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"name": "id",
|
4
|
+
"type": "string",
|
5
|
+
"required": true,
|
6
|
+
"description": "The id of the textarea."
|
7
|
+
},
|
8
|
+
{
|
9
|
+
"name": "describedBy",
|
10
|
+
"type": "string",
|
11
|
+
"required": false,
|
12
|
+
"description": "Text or element id to add to the `aria-describedby` attribute to provide description for screenreader users."
|
13
|
+
},
|
14
|
+
{
|
15
|
+
"name": "name",
|
16
|
+
"type": "string",
|
17
|
+
"required": true,
|
18
|
+
"description": "The name of the textarea, which is submitted with the form data."
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"name": "rows",
|
22
|
+
"type": "string",
|
23
|
+
"required": false,
|
24
|
+
"description": "Optional number of textarea rows (default is 5 rows)."
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"name": "value",
|
28
|
+
"type": "string",
|
29
|
+
"required": false,
|
30
|
+
"description": "Optional initial value of the textarea."
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"name": "maxlength",
|
34
|
+
"type": "string",
|
35
|
+
"required": true,
|
36
|
+
"description": "If `maxwords` is set, this is not required. The maximum number of characters. If `maxwords` is provided, the `maxlength` argument will be ignored."
|
37
|
+
},
|
38
|
+
{
|
39
|
+
"name": "maxwords",
|
40
|
+
"type": "string",
|
41
|
+
"required": true,
|
42
|
+
"description": "If `maxlength` is set, this is not required. The maximum number of words. If `maxwords` is provided, the `maxlength` argument will be ignored."
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"name": "threshold",
|
46
|
+
"type": "string",
|
47
|
+
"required": true,
|
48
|
+
"description": "The percentage value of the limit at which point the count message is displayed. If this attribute is set, the count message will be hidden by default."
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"name": "label",
|
52
|
+
"type": "object",
|
53
|
+
"required": true,
|
54
|
+
"description": "Options for the label component.",
|
55
|
+
"isComponent": true
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"name": "hint",
|
59
|
+
"type": "object",
|
60
|
+
"required": false,
|
61
|
+
"description": "Options for the hint component.",
|
62
|
+
"isComponent": true
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"name": "errorMessage",
|
66
|
+
"type": "object",
|
67
|
+
"required": false,
|
68
|
+
"description": "Options for the errorMessage component (e.g. text).",
|
69
|
+
"isComponent": true
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"name": "classes",
|
73
|
+
"type": "string",
|
74
|
+
"required": false,
|
75
|
+
"description": "Classes to add to the textarea."
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"name": "attributes",
|
79
|
+
"type": "object",
|
80
|
+
"required": false,
|
81
|
+
"description": "HTML attributes (for example data attributes) to add to the textarea."
|
82
|
+
}
|
83
|
+
]
|
@@ -0,0 +1,32 @@
|
|
1
|
+
{% from "../error-message/macro.njk" import govukErrorMessage -%}
|
2
|
+
{% from "../hint/macro.njk" import govukHint %}
|
3
|
+
{% from "../label/macro.njk" import govukLabel %}
|
4
|
+
{% from "../textarea/macro.njk" import govukTextarea %}
|
5
|
+
|
6
|
+
<div class="govuk-character-count" data-module="character-count"
|
7
|
+
{%- if params.maxlength %} data-maxlength="{{ params.maxlength }}"{% endif %}
|
8
|
+
{%- if params.threshold %} data-threshold="{{ params.threshold }}"{% endif %}
|
9
|
+
{%- if params.maxwords %} data-maxwords="{{ params.maxwords }}"{% endif %}>
|
10
|
+
{{ govukTextarea({
|
11
|
+
id: params.id,
|
12
|
+
name: params.name,
|
13
|
+
describedBy: params.id + '-info',
|
14
|
+
rows: params.rows,
|
15
|
+
value: params.value,
|
16
|
+
classes: 'js-character-count ' + (' govuk-textarea--error' if params.errorMessage) + (params.classes if params.classes),
|
17
|
+
label: {
|
18
|
+
html: params.label.html,
|
19
|
+
text: params.label.text,
|
20
|
+
classes: params.label.classes,
|
21
|
+
isPageHeading: params.label.isPageHeading,
|
22
|
+
attributes: params.label.attributes,
|
23
|
+
for: params.id
|
24
|
+
},
|
25
|
+
hint: params.hint,
|
26
|
+
errorMessage: params.errorMessage,
|
27
|
+
attributes: params.attributes
|
28
|
+
}) }}
|
29
|
+
<span id="{{ params.id }}-info" class="govuk-hint govuk-character-count__message" aria-live="polite">
|
30
|
+
You can enter up to {{ params.maxlength or params.maxwords }} {{'words' if params.maxwords else 'characters' }}
|
31
|
+
</span>
|
32
|
+
</div>
|
@@ -721,11 +721,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
721
721
|
|
722
722
|
<th class="govuk-table__header" scope="row">fieldset</th>
|
723
723
|
|
724
|
-
<td class="govuk-table__cell
|
724
|
+
<td class="govuk-table__cell">object</td>
|
725
725
|
|
726
|
-
<td class="govuk-table__cell
|
726
|
+
<td class="govuk-table__cell">No</td>
|
727
727
|
|
728
|
-
<td class="govuk-table__cell
|
728
|
+
<td class="govuk-table__cell">Arguments for the fieldset component (e.g. legend). See <a href="../fieldset/README.md#component-arguments">fieldset</a> component.</td>
|
729
729
|
|
730
730
|
</tr>
|
731
731
|
|
@@ -733,11 +733,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
733
733
|
|
734
734
|
<th class="govuk-table__header" scope="row">hint</th>
|
735
735
|
|
736
|
-
<td class="govuk-table__cell
|
736
|
+
<td class="govuk-table__cell">object</td>
|
737
737
|
|
738
|
-
<td class="govuk-table__cell
|
738
|
+
<td class="govuk-table__cell">No</td>
|
739
739
|
|
740
|
-
<td class="govuk-table__cell
|
740
|
+
<td class="govuk-table__cell">Arguments for the hint component (e.g. text). See <a href="../hint/README.md#component-arguments">hint</a> component.</td>
|
741
741
|
|
742
742
|
</tr>
|
743
743
|
|
@@ -745,11 +745,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
745
745
|
|
746
746
|
<th class="govuk-table__header" scope="row">errorMessage</th>
|
747
747
|
|
748
|
-
<td class="govuk-table__cell
|
748
|
+
<td class="govuk-table__cell">object</td>
|
749
749
|
|
750
|
-
<td class="govuk-table__cell
|
750
|
+
<td class="govuk-table__cell">No</td>
|
751
751
|
|
752
|
-
<td class="govuk-table__cell
|
752
|
+
<td class="govuk-table__cell">Arguments for the errorMessage component (e.g. text). See <a href="../error-message/README.md#component-arguments">errorMessage</a> component.</td>
|
753
753
|
|
754
754
|
</tr>
|
755
755
|
|
@@ -757,11 +757,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
757
757
|
|
758
758
|
<th class="govuk-table__header" scope="row">idPrefix</th>
|
759
759
|
|
760
|
-
<td class="govuk-table__cell
|
760
|
+
<td class="govuk-table__cell">string</td>
|
761
761
|
|
762
|
-
<td class="govuk-table__cell
|
762
|
+
<td class="govuk-table__cell">No</td>
|
763
763
|
|
764
|
-
<td class="govuk-table__cell
|
764
|
+
<td class="govuk-table__cell">String to prefix id for each checkbox item if no id is specified on each item. If`idPrefix` is not passed, fallback to using the name attribute instead.</td>
|
765
765
|
|
766
766
|
</tr>
|
767
767
|
|
@@ -769,11 +769,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
769
769
|
|
770
770
|
<th class="govuk-table__header" scope="row">name</th>
|
771
771
|
|
772
|
-
<td class="govuk-table__cell
|
772
|
+
<td class="govuk-table__cell">string</td>
|
773
773
|
|
774
|
-
<td class="govuk-table__cell
|
774
|
+
<td class="govuk-table__cell">Yes</td>
|
775
775
|
|
776
|
-
<td class="govuk-table__cell
|
776
|
+
<td class="govuk-table__cell">Name attribute for each checkbox item.</td>
|
777
777
|
|
778
778
|
</tr>
|
779
779
|
|
@@ -781,11 +781,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
781
781
|
|
782
782
|
<th class="govuk-table__header" scope="row">items</th>
|
783
783
|
|
784
|
-
<td class="govuk-table__cell
|
784
|
+
<td class="govuk-table__cell">array</td>
|
785
785
|
|
786
|
-
<td class="govuk-table__cell
|
786
|
+
<td class="govuk-table__cell">Yes</td>
|
787
787
|
|
788
|
-
<td class="govuk-table__cell
|
788
|
+
<td class="govuk-table__cell">Array of checkbox items objects.</td>
|
789
789
|
|
790
790
|
</tr>
|
791
791
|
|
@@ -793,11 +793,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
793
793
|
|
794
794
|
<th class="govuk-table__header" scope="row">items.{}.text (or) items.{}.html</th>
|
795
795
|
|
796
|
-
<td class="govuk-table__cell
|
796
|
+
<td class="govuk-table__cell">string</td>
|
797
797
|
|
798
|
-
<td class="govuk-table__cell
|
798
|
+
<td class="govuk-table__cell">Yes</td>
|
799
799
|
|
800
|
-
<td class="govuk-table__cell
|
800
|
+
<td class="govuk-table__cell">Text or HTML to use within each checkbox item label. If `html` is provided, the `text` argument will be ignored.</td>
|
801
801
|
|
802
802
|
</tr>
|
803
803
|
|
@@ -805,11 +805,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
805
805
|
|
806
806
|
<th class="govuk-table__header" scope="row">items.{}.id</th>
|
807
807
|
|
808
|
-
<td class="govuk-table__cell
|
808
|
+
<td class="govuk-table__cell">string</td>
|
809
809
|
|
810
|
-
<td class="govuk-table__cell
|
810
|
+
<td class="govuk-table__cell">No</td>
|
811
811
|
|
812
|
-
<td class="govuk-table__cell
|
812
|
+
<td class="govuk-table__cell">Specific id attribute for the checkbox item. If ommited, then `idPrefix` string will be applied.</td>
|
813
813
|
|
814
814
|
</tr>
|
815
815
|
|
@@ -817,11 +817,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
817
817
|
|
818
818
|
<th class="govuk-table__header" scope="row">items.{}.name</th>
|
819
819
|
|
820
|
-
<td class="govuk-table__cell
|
820
|
+
<td class="govuk-table__cell">string</td>
|
821
821
|
|
822
|
-
<td class="govuk-table__cell
|
822
|
+
<td class="govuk-table__cell">Yes</td>
|
823
823
|
|
824
|
-
<td class="govuk-table__cell
|
824
|
+
<td class="govuk-table__cell">Specific name for the checkbox item. If ommited, then component global `name` string will be applied.</td>
|
825
825
|
|
826
826
|
</tr>
|
827
827
|
|
@@ -829,11 +829,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
829
829
|
|
830
830
|
<th class="govuk-table__header" scope="row">items.{}.value</th>
|
831
831
|
|
832
|
-
<td class="govuk-table__cell
|
832
|
+
<td class="govuk-table__cell">string</td>
|
833
833
|
|
834
|
-
<td class="govuk-table__cell
|
834
|
+
<td class="govuk-table__cell">Yes</td>
|
835
835
|
|
836
|
-
<td class="govuk-table__cell
|
836
|
+
<td class="govuk-table__cell">Value for the checkbox input.</td>
|
837
837
|
|
838
838
|
</tr>
|
839
839
|
|
@@ -841,11 +841,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
841
841
|
|
842
842
|
<th class="govuk-table__header" scope="row">items.{}.label</th>
|
843
843
|
|
844
|
-
<td class="govuk-table__cell
|
844
|
+
<td class="govuk-table__cell">object</td>
|
845
845
|
|
846
|
-
<td class="govuk-table__cell
|
846
|
+
<td class="govuk-table__cell">No</td>
|
847
847
|
|
848
|
-
<td class="govuk-table__cell
|
848
|
+
<td class="govuk-table__cell">Provide additional attributes and classes to each checkbox item label. See [label](../label/README.md#component-arguments) component for more details.</td>
|
849
849
|
|
850
850
|
</tr>
|
851
851
|
|
@@ -853,11 +853,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
853
853
|
|
854
854
|
<th class="govuk-table__header" scope="row">items.{}.hint</th>
|
855
855
|
|
856
|
-
<td class="govuk-table__cell
|
856
|
+
<td class="govuk-table__cell">object</td>
|
857
857
|
|
858
|
-
<td class="govuk-table__cell
|
858
|
+
<td class="govuk-table__cell">No</td>
|
859
859
|
|
860
|
-
<td class="govuk-table__cell
|
860
|
+
<td class="govuk-table__cell">Provide optional hint to each checkbox item. See `hint` component for more details.</td>
|
861
861
|
|
862
862
|
</tr>
|
863
863
|
|
@@ -865,11 +865,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
865
865
|
|
866
866
|
<th class="govuk-table__header" scope="row">items.{}.checked</th>
|
867
867
|
|
868
|
-
<td class="govuk-table__cell
|
868
|
+
<td class="govuk-table__cell">boolean</td>
|
869
869
|
|
870
|
-
<td class="govuk-table__cell
|
870
|
+
<td class="govuk-table__cell">No</td>
|
871
871
|
|
872
|
-
<td class="govuk-table__cell
|
872
|
+
<td class="govuk-table__cell">If true, checkbox will be checked.</td>
|
873
873
|
|
874
874
|
</tr>
|
875
875
|
|
@@ -877,11 +877,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
877
877
|
|
878
878
|
<th class="govuk-table__header" scope="row">items.{}.conditional</th>
|
879
879
|
|
880
|
-
<td class="govuk-table__cell
|
880
|
+
<td class="govuk-table__cell">boolean</td>
|
881
881
|
|
882
|
-
<td class="govuk-table__cell
|
882
|
+
<td class="govuk-table__cell">No</td>
|
883
883
|
|
884
|
-
<td class="govuk-table__cell
|
884
|
+
<td class="govuk-table__cell">If true, content provided will be revealed when the item is checked.</td>
|
885
885
|
|
886
886
|
</tr>
|
887
887
|
|
@@ -889,11 +889,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
889
889
|
|
890
890
|
<th class="govuk-table__header" scope="row">items.{}.conditional.html</th>
|
891
891
|
|
892
|
-
<td class="govuk-table__cell
|
892
|
+
<td class="govuk-table__cell">boolean</td>
|
893
893
|
|
894
|
-
<td class="govuk-table__cell
|
894
|
+
<td class="govuk-table__cell">No</td>
|
895
895
|
|
896
|
-
<td class="govuk-table__cell
|
896
|
+
<td class="govuk-table__cell">Provide content for the conditional reveal.</td>
|
897
897
|
|
898
898
|
</tr>
|
899
899
|
|
@@ -901,11 +901,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
901
901
|
|
902
902
|
<th class="govuk-table__header" scope="row">items.{}.disabled</th>
|
903
903
|
|
904
|
-
<td class="govuk-table__cell
|
904
|
+
<td class="govuk-table__cell">boolean</td>
|
905
905
|
|
906
|
-
<td class="govuk-table__cell
|
906
|
+
<td class="govuk-table__cell">No</td>
|
907
907
|
|
908
|
-
<td class="govuk-table__cell
|
908
|
+
<td class="govuk-table__cell">If true, checkbox will be disabled.</td>
|
909
909
|
|
910
910
|
</tr>
|
911
911
|
|
@@ -913,11 +913,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
913
913
|
|
914
914
|
<th class="govuk-table__header" scope="row">items.{}.attributes</th>
|
915
915
|
|
916
|
-
<td class="govuk-table__cell
|
916
|
+
<td class="govuk-table__cell">object</td>
|
917
917
|
|
918
|
-
<td class="govuk-table__cell
|
918
|
+
<td class="govuk-table__cell">No</td>
|
919
919
|
|
920
|
-
<td class="govuk-table__cell
|
920
|
+
<td class="govuk-table__cell">Any extra HTML attributes (for example data attributes) to add to the checkbox input tag.</td>
|
921
921
|
|
922
922
|
</tr>
|
923
923
|
|
@@ -925,11 +925,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
925
925
|
|
926
926
|
<th class="govuk-table__header" scope="row">classes</th>
|
927
927
|
|
928
|
-
<td class="govuk-table__cell
|
928
|
+
<td class="govuk-table__cell">string</td>
|
929
929
|
|
930
|
-
<td class="govuk-table__cell
|
930
|
+
<td class="govuk-table__cell">No</td>
|
931
931
|
|
932
|
-
<td class="govuk-table__cell
|
932
|
+
<td class="govuk-table__cell">Optional additional classes to add to the checkboxes container.</td>
|
933
933
|
|
934
934
|
</tr>
|
935
935
|
|
@@ -937,11 +937,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
937
937
|
|
938
938
|
<th class="govuk-table__header" scope="row">attributes</th>
|
939
939
|
|
940
|
-
<td class="govuk-table__cell
|
940
|
+
<td class="govuk-table__cell">object</td>
|
941
941
|
|
942
|
-
<td class="govuk-table__cell
|
942
|
+
<td class="govuk-table__cell">No</td>
|
943
943
|
|
944
|
-
<td class="govuk-table__cell
|
944
|
+
<td class="govuk-table__cell">Any extra HTML attributes (for example data attributes) to add to the checkboxes container.</td>
|
945
945
|
|
946
946
|
</tr>
|
947
947
|
|
@@ -579,11 +579,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
579
579
|
|
580
580
|
<th class="govuk-table__header" scope="row">id</th>
|
581
581
|
|
582
|
-
<td class="govuk-table__cell
|
582
|
+
<td class="govuk-table__cell">string</td>
|
583
583
|
|
584
|
-
<td class="govuk-table__cell
|
584
|
+
<td class="govuk-table__cell">No</td>
|
585
585
|
|
586
|
-
<td class="govuk-table__cell
|
586
|
+
<td class="govuk-table__cell">Optional id. This is used for the main component and to compose id attribute for each item.</td>
|
587
587
|
|
588
588
|
</tr>
|
589
589
|
|
@@ -591,11 +591,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
591
591
|
|
592
592
|
<th class="govuk-table__header" scope="row">namePrefix</th>
|
593
593
|
|
594
|
-
<td class="govuk-table__cell
|
594
|
+
<td class="govuk-table__cell">string</td>
|
595
595
|
|
596
|
-
<td class="govuk-table__cell
|
596
|
+
<td class="govuk-table__cell">No</td>
|
597
597
|
|
598
|
-
<td class="govuk-table__cell
|
598
|
+
<td class="govuk-table__cell">Optional prefix. This is used to prefix each `item.name` using `-`.</td>
|
599
599
|
|
600
600
|
</tr>
|
601
601
|
|
@@ -603,11 +603,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
603
603
|
|
604
604
|
<th class="govuk-table__header" scope="row">items</th>
|
605
605
|
|
606
|
-
<td class="govuk-table__cell
|
606
|
+
<td class="govuk-table__cell">array</td>
|
607
607
|
|
608
|
-
<td class="govuk-table__cell
|
608
|
+
<td class="govuk-table__cell">Yes</td>
|
609
609
|
|
610
|
-
<td class="govuk-table__cell
|
610
|
+
<td class="govuk-table__cell">An array of input objects with name, value and optional classes</td>
|
611
611
|
|
612
612
|
</tr>
|
613
613
|
|
@@ -615,11 +615,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
615
615
|
|
616
616
|
<th class="govuk-table__header" scope="row">items.{}.id</th>
|
617
617
|
|
618
|
-
<td class="govuk-table__cell
|
618
|
+
<td class="govuk-table__cell">string</td>
|
619
619
|
|
620
|
-
<td class="govuk-table__cell
|
620
|
+
<td class="govuk-table__cell">No</td>
|
621
621
|
|
622
|
-
<td class="govuk-table__cell
|
622
|
+
<td class="govuk-table__cell">Optional item-specific id. If provided, it will be used instead of the generated id.</td>
|
623
623
|
|
624
624
|
</tr>
|
625
625
|
|
@@ -627,11 +627,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
627
627
|
|
628
628
|
<th class="govuk-table__header" scope="row">items.{}.name</th>
|
629
629
|
|
630
|
-
<td class="govuk-table__cell
|
630
|
+
<td class="govuk-table__cell">array</td>
|
631
631
|
|
632
|
-
<td class="govuk-table__cell
|
632
|
+
<td class="govuk-table__cell">Yes</td>
|
633
633
|
|
634
|
-
<td class="govuk-table__cell
|
634
|
+
<td class="govuk-table__cell">Item-specific name attribute.</td>
|
635
635
|
|
636
636
|
</tr>
|
637
637
|
|
@@ -639,11 +639,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
639
639
|
|
640
640
|
<th class="govuk-table__header" scope="row">items.{}.value</th>
|
641
641
|
|
642
|
-
<td class="govuk-table__cell
|
642
|
+
<td class="govuk-table__cell">string</td>
|
643
643
|
|
644
|
-
<td class="govuk-table__cell
|
644
|
+
<td class="govuk-table__cell">No</td>
|
645
645
|
|
646
|
-
<td class="govuk-table__cell
|
646
|
+
<td class="govuk-table__cell">Optional item-specific value attribute. If provided, it will be used as the initial value of the input.</td>
|
647
647
|
|
648
648
|
</tr>
|
649
649
|
|
@@ -651,11 +651,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
651
651
|
|
652
652
|
<th class="govuk-table__header" scope="row">items.{}.label</th>
|
653
653
|
|
654
|
-
<td class="govuk-table__cell
|
654
|
+
<td class="govuk-table__cell">string</td>
|
655
655
|
|
656
|
-
<td class="govuk-table__cell
|
656
|
+
<td class="govuk-table__cell">No</td>
|
657
657
|
|
658
|
-
<td class="govuk-table__cell
|
658
|
+
<td class="govuk-table__cell">Optional item-specific label text. If provided, this will be used instead of the items.{}.name.</td>
|
659
659
|
|
660
660
|
</tr>
|
661
661
|
|
@@ -663,11 +663,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
663
663
|
|
664
664
|
<th class="govuk-table__header" scope="row">hint</th>
|
665
665
|
|
666
|
-
<td class="govuk-table__cell
|
666
|
+
<td class="govuk-table__cell">object</td>
|
667
667
|
|
668
|
-
<td class="govuk-table__cell
|
668
|
+
<td class="govuk-table__cell">No</td>
|
669
669
|
|
670
|
-
<td class="govuk-table__cell
|
670
|
+
<td class="govuk-table__cell">Optional hint. See <a href="../hint/README.md#component-arguments">hint</a> component.</td>
|
671
671
|
|
672
672
|
</tr>
|
673
673
|
|
@@ -675,11 +675,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
675
675
|
|
676
676
|
<th class="govuk-table__header" scope="row">errorMessage</th>
|
677
677
|
|
678
|
-
<td class="govuk-table__cell
|
678
|
+
<td class="govuk-table__cell">object</td>
|
679
679
|
|
680
|
-
<td class="govuk-table__cell
|
680
|
+
<td class="govuk-table__cell">No</td>
|
681
681
|
|
682
|
-
<td class="govuk-table__cell
|
682
|
+
<td class="govuk-table__cell">Optional error message. See <a href="../error-message/README.md#component-arguments">errorMessage</a> component.</td>
|
683
683
|
|
684
684
|
</tr>
|
685
685
|
|
@@ -687,11 +687,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
687
687
|
|
688
688
|
<th class="govuk-table__header" scope="row">fieldset</th>
|
689
689
|
|
690
|
-
<td class="govuk-table__cell
|
690
|
+
<td class="govuk-table__cell">object</td>
|
691
691
|
|
692
|
-
<td class="govuk-table__cell
|
692
|
+
<td class="govuk-table__cell">No</td>
|
693
693
|
|
694
|
-
<td class="govuk-table__cell
|
694
|
+
<td class="govuk-table__cell">Arguments for the fieldset component (e.g. legend). See <a href="../fieldset/README.md#component-arguments">fieldset</a> component.</td>
|
695
695
|
|
696
696
|
</tr>
|
697
697
|
|
@@ -699,11 +699,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
699
699
|
|
700
700
|
<th class="govuk-table__header" scope="row">classes</th>
|
701
701
|
|
702
|
-
<td class="govuk-table__cell
|
702
|
+
<td class="govuk-table__cell">string</td>
|
703
703
|
|
704
|
-
<td class="govuk-table__cell
|
704
|
+
<td class="govuk-table__cell">No</td>
|
705
705
|
|
706
|
-
<td class="govuk-table__cell
|
706
|
+
<td class="govuk-table__cell">Optional additional classes to add to the date-input container.</td>
|
707
707
|
|
708
708
|
</tr>
|
709
709
|
|
@@ -711,11 +711,11 @@ If you are using Nunjucks,then macros take the following arguments
|
|
711
711
|
|
712
712
|
<th class="govuk-table__header" scope="row">attributes</th>
|
713
713
|
|
714
|
-
<td class="govuk-table__cell
|
714
|
+
<td class="govuk-table__cell">object</td>
|
715
715
|
|
716
|
-
<td class="govuk-table__cell
|
716
|
+
<td class="govuk-table__cell">No</td>
|
717
717
|
|
718
|
-
<td class="govuk-table__cell
|
718
|
+
<td class="govuk-table__cell">Any extra HTML attributes (for example data attributes) to add to the date-input container.</td>
|
719
719
|
|
720
720
|
</tr>
|
721
721
|
|