Improve this Doc View Source $ariaProvider

From Get docs
< Improve this Doc ngAria‎ | providerAngularjs/docs/1.8/api/ngaria/provider/$ariaprovider


Improve this Doc View Source $ariaProvider

  1. $aria
  2. provider in module ngAria

Overview

Used for configuring the ARIA attributes injected and managed by ngAria.

angular.module('myApp', ['ngAria'], function config($ariaProvider) {
  $ariaProvider.config({
    ariaValue: true,
    tabindex: false
  });
});

Dependencies

Requires the ngAria module to be installed.


Methods

  • === config(config); ===

    Enables/disables various ARIA attributes

    Parameters

    Param Type Details
    config object

    object to enable/disable specific ARIA attributes

    • ariaHidden{boolean} – Enables/disables aria-hidden tags
    • ariaChecked{boolean} – Enables/disables aria-checked tags
    • ariaReadonly{boolean} – Enables/disables aria-readonly tags
    • ariaDisabled{boolean} – Enables/disables aria-disabled tags
    • ariaRequired{boolean} – Enables/disables aria-required tags
    • ariaInvalid{boolean} – Enables/disables aria-invalid tags
    • ariaValue{boolean} – Enables/disables aria-valuemin, aria-valuemax and aria-valuenow tags
    • tabindex{boolean} – Enables/disables tabindex tags
    • bindKeydown{boolean} – Enables/disables keyboard event binding on non-interactive elements (such as div or li) using ng-click, making them more accessible to users of assistive technologies
    • bindRoleForClick{boolean} – Adds role=button to non-interactive elements (such as div or li) using ng-click, making them more accessible to users of assistive technologies


© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 3.0.
https://code.angularjs.org/1.8.2/docs/api/ngAria/provider/$ariaProvider