CBWIRE
InstallSource CodeIssuesSupport
v2.x
v2.x
  • Introduction
  • Release History
    • What's New With 2.2
    • What's New With 2.1
    • What's New With 2.0
  • Getting Started
  • Examples
  • Essentials
    • Configuration
    • Wires
    • Data Properties
    • Computed Properties
      • Computed Properties ( Proxied )
    • Actions
    • Templates
    • Events & Listeners
    • Wire Lifecycle
    • JavaScript
    • Testing
  • Wire Features
    • Validation
    • File Uploads
    • Query String
    • Redirecting
    • Dependency Injection
  • Template Features
    • Directives
    • Loading States
    • Polling
    • Prefetching
    • Offline State
    • Defer Loading
    • Dirty State
  • Integrations
    • ContentBox CMS
    • Turbo
    • AlpineJS
    • Inline Scripts
Powered by GitBook
On this page
  • ColdBox.cfc
  • enableTurbo
  • maxUploadSeconds
  • throwOnMissingSetter
  • trimStringValues
  • wiresLocation
  • useComputedPropertiesProxy

Was this helpful?

Export as PDF
  1. Essentials

Configuration

Alter CBWIRE's behavior with these nifty configuration options.

PreviousExamplesNextWires

Last updated 2 years ago

Was this helpful?

ColdBox.cfc

You can alter any default behavior by overriding settings in your config/ColdBox.cfc file.

// File: ./config/ColdBox.cfc
component{
    function configure() {
        moduleSettings = {
            cbwire = {
                "enableTurbo": false,
                "maxUploadSeconds": 5 * 60, // 5 minutes
                "throwOnMissingSetterMethod" : false,
                "trimStringValues": false,
                "wiresLocation": "myWires",
                "useComputedPropertiesProxy": false
            }
        };
     }
}

Overriding the module settings is optional. All settings come with a default that is used if no overrides are provided. See in the ColdBox documentation for additional reference.

enableTurbo

maxUploadSeconds

The maximum amount of time allowed for uploads to complete.

throwOnMissingSetter

trimStringValues

When set to true, any data properties that contain strings will be automatically trimmed. Great for form inputs. Defaults to false.

wiresLocation

useComputedPropertiesProxy

Set as true to enable , which causes any clicked links or form submissions to be performed in the background via AJAX and updates the DOM without reloading the page. Great when developing single-page, VueJS-like applications. Defaults to false.

Set as true to throw a WireSetterNotFound exception if the incoming wire request tries to update a property without a setter on our . Otherwise, missing setters are ignored. Defaults to false.

The relative folder path where are stored. Defaults to 'wires'.

When set to true, Computed Properties will be proxied. See .

Overriding Module Settings
Turbo
Wire
Wires
Computed Properties (Proxied)