<cfargument>

Allows subtag data to be saved with the base tag. Applies only to custom tags.

Usage

<cfargument
    [default=any]
    [required=boolean]
    [passby=reference|value]
    [hint=string]
    [displayname=string]
    name=string
    [type=string]
>

This tag cannot have a body.

This tag is also supported within cfscript

Attributes

Attribute Description Default
default
(any, optional)

default value of the argument

required
(boolean, optional)

is argument required or not

passby
(string, optional)

should the argument passed as reference (default) or as a value

reference

hint
(string, optional)

hint to the argument (only used by components)

displayname
(string, optional)

name to display (only used by components)

name
(string, required)

The name of the argument

type
(string, optional)

the type of the argumentany (array, binary, boolean, date, guid, numeric, query, string, struct, uuid)

Examples

There are currently no examples for this tag.