virtualgrid: adjusts VI effect for an overflow action
[platform/framework/web/web-ui-fw.git] / src / js / jquery.mobile.label.js
1 //>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
2 //>>description: Add markup for labels
3 //>>label: Label
4 //>>group: Tizen:Core
5
6 define( [ ], function ( ) {
7 //>>excludeEnd("jqmBuildExclude");
8
9 /*
10  *
11  * This software is licensed under the MIT licence (as defined by the OSI at
12  * http://www.opensource.org/licenses/mit-license.php)
13  * 
14  * ***************************************************************************
15  * Copyright (C) 2011 by Intel Corporation Ltd.
16  * 
17  * Permission is hereby granted, free of charge, to any person obtaining a
18  * copy of this software and associated documentation files (the "Software"),
19  * to deal in the Software without restriction, including without limitation
20  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
21  * and/or sell copies of the Software, and to permit persons to whom the
22  * Software is furnished to do so, subject to the following conditions:
23  * 
24  * The above copyright notice and this permission notice shall be included in
25  * all copies or substantial portions of the Software.
26  * 
27  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
28  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
29  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
30  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
31  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
32  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
33  * DEALINGS IN THE SOFTWARE.
34  * ***************************************************************************
35  */
36
37 // Add markup for labels
38
39
40 (function($, undefined) {
41
42 $(document).bind("pagecreate create", function(e) {
43     $(":jqmData(role='label')", e.target).not(":jqmData(role='none'), :jqmData(role='nojs')").each(function() {
44         $(this).addClass("jquery-mobile-ui-label")
45                .html($("<span>", {"class": "jquery-mobile-ui-label-text"}).text($(this).text()));
46     });
47 });
48
49 })(jQuery);
50
51 //>>excludeStart("jqmBuildExclude", pragmas.jqmBuildExclude);
52 } );
53 //>>excludeEnd("jqmBuildExclude");
54