MCPcopy Create free account
hub / github.com/angular/components / trigger

Method trigger

src/cdk/menu/menu-item-checkbox.ts:35–41  ·  view source on GitHub ↗

* Toggle the checked state of the checkbox. * @param options Options the configure how the item is triggered * - keepOpen: specifies that the menu should be kept open after triggering the item.

(options?: {keepOpen: boolean})

Source from the content-addressed store, hash-verified

33 * - keepOpen: specifies that the menu should be kept open after triggering the item.
34 */
35 override trigger(options?: {keepOpen: boolean}) {
36 super.trigger(options);
37
38 if (!this.disabled) {
39 this.checked = !this.checked;
40 }
41 }
42}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected