|
3007 | 3007 | attrs.aria_label = value
|
3008 | 3008 | $(attrs.jradio).attr('aria-label', value)
|
3009 | 3009 | },
|
| 3010 | + focus: function() { |
| 3011 | + $(attrs.jradio).focus() |
| 3012 | + }, |
3010 | 3013 | remove: function() {
|
3011 | 3014 | let rb = __radio_buttons
|
3012 | 3015 | let name = attrs.name
|
|
3102 | 3105 | attrs.aria_label = value
|
3103 | 3106 | $(attrs.jcheckbox).attr('aria-label', value)
|
3104 | 3107 | },
|
| 3108 | + focus: function() { |
| 3109 | + $(attrs.jcheckbox).focus() |
| 3110 | + }, |
3105 | 3111 | remove: function() {
|
3106 | 3112 | $(attrs.jcheckbox).remove()
|
3107 | 3113 | $("#"+attrs._id).remove()
|
|
3264 | 3270 | attrs.aria_label = value
|
3265 | 3271 | $(attrs.jwinput).attr('aria-label', value)
|
3266 | 3272 | },
|
3267 |
| - |
| 3273 | + focus: function() { |
| 3274 | + $(attrs.jwinput).focus() |
| 3275 | + }, |
3268 | 3276 | get number() {return attrs.number},
|
3269 | 3277 | remove: function() {
|
3270 | 3278 | if (attrs.prompt != '') attrs.__wprompt.remove()
|
|
3331 | 3339 | attrs.background = value
|
3332 | 3340 | $(attrs.jbutton).css({backgroundColor:rgb_to_css(attrs.background)})
|
3333 | 3341 | },
|
3334 |
| - focus: function() { |
3335 |
| - $(attrs.jbutton).focus() |
3336 |
| - }, |
3337 | 3342 | get aria_labelledby() {return attrs.aria_labelledby},
|
3338 | 3343 | set aria_labelledby(value) {
|
3339 | 3344 | if (value._id === undefined) throw new Error("An aria_labelledby attribute must be a wtext object.")
|
|
3351 | 3356 | attrs.aria_label = value
|
3352 | 3357 | $(attrs.jbutton).attr('aria-label', value)
|
3353 | 3358 | },
|
| 3359 | + focus: function() { |
| 3360 | + $(attrs.jbutton).focus() |
| 3361 | + }, |
3354 | 3362 | remove: function() {
|
3355 | 3363 | attrs.disabled = true
|
3356 | 3364 | $(attrs.jbutton).attr('disabled', attrs.disabled)
|
|
3516 | 3524 | attrs.aria_label = value
|
3517 | 3525 | $(attrs.jslider).attr('aria-label', value)
|
3518 | 3526 | },
|
3519 |
| - |
| 3527 | + focus: function() { |
| 3528 | + $(attrs.jslider).focus() |
| 3529 | + }, |
3520 | 3530 | remove: function() {
|
3521 | 3531 | attrs.disabled = true
|
3522 | 3532 | $(attrs.jslider).attr('disabled', attrs.disabled)
|
|
3613 | 3623 | attrs.aria_label = value
|
3614 | 3624 | $(attrs.jmenu).attr('aria-label', value)
|
3615 | 3625 | },
|
3616 |
| - |
| 3626 | + focus: function() { |
| 3627 | + $(attrs.jmenu).focus() |
| 3628 | + }, |
3617 | 3629 | remove: function() {
|
3618 | 3630 | attrs.disabled = true
|
3619 | 3631 | $(attrs.jmenu).attr('disabled', attrs.disabled)
|
|
0 commit comments