From fc29e682efc5c12ee59a772d7a0b9e1ad1e279c3 Mon Sep 17 00:00:00 2001 From: Jack Lukic Date: Sun, 6 Mar 2016 21:33:55 -0500 Subject: [PATCH] Add restore placeholder text --- RELEASE-NOTES.md | 2 +- src/definitions/modules/dropdown.js | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 1c82e14b7..031b2f8ab 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -43,7 +43,7 @@ - **Table** - Fixed issue where `striped selectable` table would not correctly show hover color on striped rows **Enhancements** -- **Dropdown** - Using API with dropdown will now +- **Dropdown** - Added new convenience method `restore placeholder text` - **Rating** - Added new setting `fireOnInit` for rating, which defaults to `false`. When set to true `onRate` will fire when rating is initialized #3712 - **Site** `@px` and `@relativepx` i.e. `@relative12px` which can be used to return EM value of pixels are now extended to `@relative40px` - **Tabs** - Added option `deactivate`, defaults to `siblings` which will only deactivate tab activators that are DOM siblings elements to the activating element. Setting it to 'all' will deactivate any other tab element initialized at the same time. diff --git a/src/definitions/modules/dropdown.js b/src/definitions/modules/dropdown.js index 087e5cc1a..e2f2f8e4f 100644 --- a/src/definitions/modules/dropdown.js +++ b/src/definitions/modules/dropdown.js @@ -1788,6 +1788,9 @@ $.fn.dropdown = function(parameters) { module.set.text(defaultText); } }, + placeholderText: function() { + module.set.placeholderText(); + }, defaultValue: function() { var defaultValue = module.get.defaultValue()