From 64524f33fbdb6f251989d0344748b9b87a366ec2 Mon Sep 17 00:00:00 2001 From: North McCormick Date: Thu, 21 Jul 2016 11:19:33 -0700 Subject: [PATCH] + Add class to label --- README.md | 7 +++++++ src/wrappers/index.js | 1 + src/wrappers/label.html | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a811c9b..eca87bc 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,13 @@ NOTE: All of these properties will be under the `templateOptions` property as of ###### Default >`undefined` +--- +##### labelClass (string) +>`labelClass` is used to add classes to the label. + +###### Default +>`undefined` + --- ##### labelSrOnly (boolean) >`labelSrOnly` is used to add the sr-only class to a label so it will hide on non-screen-readers diff --git a/src/wrappers/index.js b/src/wrappers/index.js index 7c71ce8..87070f3 100644 --- a/src/wrappers/index.js +++ b/src/wrappers/index.js @@ -9,6 +9,7 @@ export default ngModule => { apiCheck: check => ({ templateOptions: { label: check.string.optional, + labelClass: check.string.optional, required: check.bool.optional, labelSrOnly: check.bool.optional, } diff --git a/src/wrappers/label.html b/src/wrappers/label.html index 7144454..dd0b898 100644 --- a/src/wrappers/label.html +++ b/src/wrappers/label.html @@ -1,5 +1,5 @@
-