Home / Function/ trigger() — vue Function Reference

trigger() — vue Function Reference

Architecture documentation for the trigger() function in model.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  bcd2513d_41ad_4466_521f_87dfe0b8f7fd["trigger()"]
  69a7e351_3007_a43c_618a_93588eb8db15["model.ts"]
  bcd2513d_41ad_4466_521f_87dfe0b8f7fd -->|defined in| 69a7e351_3007_a43c_618a_93588eb8db15
  aaa80066_df58_20e9_336b_9dd0d6380181["onCompositionEnd()"]
  aaa80066_df58_20e9_336b_9dd0d6380181 -->|calls| bcd2513d_41ad_4466_521f_87dfe0b8f7fd
  6f809a6e_ef45_f412_fb8a_24fc51dd5b72["directive.componentUpdated()"]
  6f809a6e_ef45_f412_fb8a_24fc51dd5b72 -->|calls| bcd2513d_41ad_4466_521f_87dfe0b8f7fd
  style bcd2513d_41ad_4466_521f_87dfe0b8f7fd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/platforms/web/runtime/directives/model.ts lines 142–146

function trigger(el, type) {
  const e = document.createEvent('HTMLEvents')
  e.initEvent(type, true, true)
  el.dispatchEvent(e)
}

Domain

Subdomains

Frequently Asked Questions

What does trigger() do?
trigger() is a function in the vue codebase, defined in src/platforms/web/runtime/directives/model.ts.
Where is trigger() defined?
trigger() is defined in src/platforms/web/runtime/directives/model.ts at line 142.
What calls trigger()?
trigger() is called by 2 function(s): directive.componentUpdated, onCompositionEnd.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free