LogoLogo
InstallSource CodeIssuesSupport
v1.x
v1.x
  • Introduction
  • Essentials
    • Installation
    • Configuration
    • Creating Components
    • Rendering Views
    • Data Properties
    • Actions
    • Events
    • Lifecycle Events
  • Component Features
    • Redirecting
    • Logging
  • Templates
    • Loading States
    • Polling
    • Prefetching
    • Offline State
    • Dirty States
    • Defer Loading
  • JS Integrations
    • AlpineJS
    • Inline Scripts
  • Testing
  • Security
  • Troubleshooting
  • CommandBox Commands
Powered by GitBook
On this page
  • Component Wiring
  • mount( event, rc, prc, parameters )

Was this helpful?

  1. Essentials

Lifecycle Events

PreviousEventsNextRedirecting

Last updated 3 years ago

Was this helpful?

Component Wiring

mount( event, rc, prc, parameters )

Runs once when the component is initially wired.

component extends="cbwire.models.Component" {

    function mount( event, rc, prc, parameters ){
        variables.data.incomingValue = event.getValue( "someField" );
    }

}