How to use the @clr/angular.ClrSelectedState.INDETERMINATE function in @clr/angular

To help you get started, we’ve selected a few @clr/angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vmware / clarity / src / dev / src / app / tree-view / pre-selection / pre-selection.ts View on Github external
},
      selected: {
        parent: ClrSelectedState.SELECTED,
        child1: ClrSelectedState.SELECTED,
        child2: ClrSelectedState.SELECTED,
      },
      indeterminate: {
        parent: ClrSelectedState.INDETERMINATE,
        child1: ClrSelectedState.SELECTED,
        child2: ClrSelectedState.UNSELECTED,
      },
    },

    inconsistent: {
      unselected: {
        parent: ClrSelectedState.INDETERMINATE,
        child1: ClrSelectedState.UNSELECTED,
        child2: ClrSelectedState.UNSELECTED,
      },
      selected: {
        parent: ClrSelectedState.UNSELECTED,
        child1: ClrSelectedState.SELECTED,
        child2: ClrSelectedState.SELECTED,
      },
      indeterminate: {
        parent: ClrSelectedState.SELECTED,
        child1: ClrSelectedState.SELECTED,
        child2: ClrSelectedState.UNSELECTED,
      },
    },
  };
github vmware / clarity / src / dev / src / app / tree-view / pre-selection / pre-selection.ts View on Github external
})
export class PreSelectionDemo {
  eager = {
    consistent: {
      unselected: {
        parent: ClrSelectedState.UNSELECTED,
        child1: ClrSelectedState.UNSELECTED,
        child2: ClrSelectedState.UNSELECTED,
      },
      selected: {
        parent: ClrSelectedState.SELECTED,
        child1: ClrSelectedState.SELECTED,
        child2: ClrSelectedState.SELECTED,
      },
      indeterminate: {
        parent: ClrSelectedState.INDETERMINATE,
        child1: ClrSelectedState.SELECTED,
        child2: ClrSelectedState.UNSELECTED,
      },
    },

    inconsistent: {
      unselected: {
        parent: ClrSelectedState.INDETERMINATE,
        child1: ClrSelectedState.UNSELECTED,
        child2: ClrSelectedState.UNSELECTED,
      },
      selected: {
        parent: ClrSelectedState.UNSELECTED,
        child1: ClrSelectedState.SELECTED,
        child2: ClrSelectedState.SELECTED,
      },