Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

input [checkbox] directive should support ng-indeterminate-value #1411

@aziz

Description

@aziz

checkboxes can have three states:

checked and unchecked states are supported through ng-true-value="{string}" and ng-false-value="{string}" but we don't have ng-indeterminate-value attribute.

I've made custom directive for now, but I believe it should be part of the built-in directive.

Angular.directive 'indeterminate', ->
  restrict: 'A'
  link: (scope, element, attrs) ->
    if scope.$eval(attrs.indeterminate)
      element.prop("indeterminate", true)
    else
      element.prop("indeterminate", false)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions