coldbox.system.modules.HTMLHelper.models

Class HTMLHelper

lucee.Component
    extended by coldbox.system.FrameworkSupertype
      extended by coldbox.system.modules.HTMLHelper.models.HTMLHelper

Copyright Since 2005 ColdBox Framework by Luis Majano and Ortus Solutions, Corp www.ortussolutions.com --- A cool utility that helps you when working with HTML so it is less verbose, more consistency, ORM data binding, auto escaping and much more.

Class Attributes:
  • singleton
  •  
  • synchronized : false
  •  
  • accessors : true
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any settings
          Module Settings.

    • access = public
    • returntype = any
    true false
    Constructor Summary
    init(any controller)
          Constructor.
    Method Summary
    private any $htmlHead(any content)
         Facade to CFML htmlHead.
    any addAsset(any asset, [boolean sendToHeader='true'], [boolean async='false'], [boolean defer='false'])
         Add a js/css asset(s) to the html head section.
    any addJSContent(any content, [boolean sendToHeader='false'])
         Generate a script tag with custom JS content.
    any addStyleContent(any content, [boolean sendToHeader='false'])
         Generate a style tag with custom CSS content.
    any anchor(any name, [any text=''], [struct data='[runtime expression]'])
         Generate anchors.
    any arrayToTable(any data, [string includes=''], [string excludes=''], any buffer)
         Convert a table out of an array of structs.
    any audio(any src, [boolean autoplay='false'], [boolean controls='true'], [boolean loop='false'], [boolean preload='false'], [boolean noBaseURL='false'], [any name=''], [any data='[runtime expression]'])
         HTML Audio Tag.
    any autoDiscoveryLink([any type='RSS'], [any href], [any rel='alternate'], [any title=''], [struct data='[runtime expression]'])
         Creates auto discovery links for RSS and ATOM feeds.
    private any bindValue(any args)
         Bind entity values.
    any br([numeric count='1'])
         Generate line breaks.
    any button([any name=''], [any value=''], [boolean disabled='false'], [any type='button'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a button.
    any canvas(any id, [any width=''], [any height=''], [any data='[runtime expression]'])
         HTML Canvas Tag.
    any checkbox([any name=''], [any value='true'], [boolean disabled='false'], [boolean checked='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a checkbox field.
    any docType([any type='html5'])
         Render a doctype by type name: xhtml11,xhtml1-strict,xhtml-trans,xthml-frame,html5,html4-strict,html4-trans,html4-frame.
    any elixir(any fileName, [any buildDirectory='build'], [boolean sendToHeader='true'], [boolean async='false'], [boolean defer='false'])
         Adds the versioned path for an asset to the view using ColdBox Elixir.
    any elixirPath(any fileName, [any buildDirectory='build'], [boolean useModuleRoot='false'])
         Adds the versioned path for an asset to the view using ColdBox Elixir.
    any emailField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out an email field.
    any endFieldSet()
         End a fieldset.
    any endForm()
         End a form.
    any entityFields(any entity, [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any fieldwrapper=''], [struct fieldWrapperAttrs='[runtime expression]'], [struct labelAttrs='[runtime expression]'], [any labelwrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any textareas=''], [boolean booleanSelect='true'], [boolean showRelations='true'], [struct manytoone='[runtime expression]'], [struct manytomany='[runtime expression]'], [boolean inputInsideLabel='false'])
         Create fields based on entity properties and relationships.
    any fileField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a file field.
    private any flattenAttributes(struct target, [any excludes=''], any buffer)
         flatten a struct of attributes to strings and returns the incoming buffer.
    private array getColumnArray(any qry, any columnName)
         Returns an array of values from the query and column.
    string getSettings()
    any heading(any content, [numeric size='1'])
         Generate headers.
    any hiddenField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a hidden field.
    any href([any href=''], [any text=''], [any queryString=''], [any title=''], [boolean noBaseURL='false'], [struct data='[runtime expression]'])
         Create href tags, using the SES base URL or not.
    any imageButton(any src, [any name=''], [boolean disabled='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a image button.
    any img(any src, [any alt=''], [any class=''], [any width=''], [any height=''], [any title=''], [any rel=''], [any name=''], [boolean noBaseURL='false'], [struct data='[runtime expression]'])
         Create image tags using the SES base URL or not.
    any inputField([any type='text'], [any name=''], [any value=''], [boolean disabled='false'], [boolean checked='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out an input field.
    any label(any field, [any content=''], [struct labelAttrs='[runtime expression]'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [struct data='[runtime expression]'], [any class=''], [numeric labelMode='0'])
         Render a label tag.
    any link([any href=''], [any rel='stylesheet'], [any type='text/css'], [any title=''], [any media=''], [boolean noBaseURL='false'], [any charset='UTF-8'], [boolean sendToHeader='false'], [struct data='[runtime expression]'])
         Create link tags, using the SES base URL or not.
    private string makePretty(any text)
         Make pretty text.
    any meta(any name, [any content=''], [any type='name'], [boolean sendToHeader='false'], [any property=''])
         Generate meta tags.
    any nbs([numeric count='1'])
         Generate non-breaking spaces.
    private any normalizeID(any args)
         Normalize ID with name arguments.
    any objectsToTable(any data, [string includes=''], [string excludes=''], any buffer)
         Convert a table out of an array of objects.
    any ol(any values, [string column=''])
         Create ordered lists according to passed in values and arguments, compressed HTML.
    any onMissingMethod([any missingMethodName], [any missingMethodArguments])
         Intercepts any XX() call to the helper, meaning rendering ANY type of tag.
    any options([any values], [any column=''], [any nameColumn=''], [any selectedIndex='0'], [any selectedValue=''])
         Render out options.
    private boolean passIncludeExclude(any value, [any includes=''], [any excludes=''])
         checks if a list include exclude check passes.
    any passwordField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a password field.
    private string prepareBaseLink([boolean noBaseURL='false'], [any src])
         Prepare a base link.
    any queryToTable(any data, [string includes=''], [string excludes=''], any buffer)
         Convert a table out of a query, usually the header tag has already printed.
    any radioButton([any name=''], [any value='true'], [boolean disabled='false'], [boolean checked='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a radiobutton field.
    any resetButton([any name=''], [any value='Reset'], [boolean disabled='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a reset button.
    any select([any name=''], [any options=''], [any column=''], [any nameColumn=''], [any selectedIndex='0'], [any selectedValue=''], [any bind=''], [any bindProperty=''], [boolean disabled='false'], [boolean multiple='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelwrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [struct data='[runtime expression]'], [any labelClass=''], [boolean inputInsideLabel='false'])
         Render out a select tag.
    any setSettings(any settings)
    any slugify(any str, [numeric maxLength='0'], [any allow=''])
         Slugify a string for URL Safety.
    any startFieldSet([any legend=''], [struct data='[runtime expression]'])
         Build a field set with or without a legend.
    any startForm([string action=''], [string name=''], [string method='POST'], [boolean multipart='false'], [boolean ssl], [boolean noBaseURL='false'], [struct data='[runtime expression]'])
         Create cool form tags.
    any submitButton([any name=''], [any value='Submit'], [boolean disabled='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a submit button.
    any table(any data, [any includes=''], [any excludes=''], [any name=''])
         Convert a table out of data (either a query or array of structures or array of entities).
    any tag(any tag, [any content=''], [struct data='[runtime expression]'], [string excludes=''])
         Generate tags.
    any textArea([any name=''], [numeric cols], [numeric rows], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a textarea.
    any textField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a text field.
    any toHtmlList(any tag, any values, [any column=''], [struct data='[runtime expression]'])
         Convert a sent in tag type to an HTML list.
    any ul(any values, [string column=''])
         Create un-ordered lists according to passed in values and arguments, compressed HTML.
    any urlField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])
         Render out a URL field.
    any video(any src, [any width=''], [any height=''], [any poster=''], [boolean autoplay='false'], [boolean controls='true'], [boolean loop='false'], [boolean preload='false'], [boolean noBaseURL='false'], [any name=''], [any data='[runtime expression]'])
         HTML Video Tag.
    private any wrapTag(any buffer, any tag, [boolean end='false'], [struct attrs])
         Wrap a tag in the buffer.
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    announceInterception, getCache, getController, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getRequestCollection, getRequestContext, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, relocate, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists
     
    Methods inherited from class lucee.Component
    None

    Constructor Detail

    init

    public init(any controller)

    Constructor

    Parameters:
    controller - The ColdBox Controller

    Property Detail

    settings

    property any settings

    Module Settings

    Attributes:
    access - public
    required - false
    returntype - any
    serializable - true

    Method Detail

    $htmlHead

    private any $htmlHead(any content)

    Facade to CFML htmlHead

    Parameters:
    content

    addAsset

    public any addAsset(any asset, [boolean sendToHeader='true'], [boolean async='false'], [boolean defer='false'])

    Add a js/css asset(s) to the html head section. You can also pass in a list of assets via the asset argument to try to load all of them. You can also make this method return the string that will be sent to the header instead. If the setings: htmlHelper_js_path exists, we will use it as a prefix for JS files (Deprecated by 5.2) If the setings: htmlhelper_css_path exists, we will use it as a prefix for CSS Files (Deprecated by 5.2) In 5.2 the HTML Helper is an internal module, to configure it levareage the `HTMLHelper` module settings. This method tracks assets in the PRC via the key: cbox_assets

    Overrides:
    addAsset in class FrameworkSupertype
    Parameters:
    asset - The asset(s) to load, only js or css files. This can also be a comma delimmited list.
    sendToHeader - Send to header or returned HTML content
    async - HTML5 JavaScript argument: Specifies that the script is executed asynchronously (only for external scripts)
    defer - HTML5 JavaScript argument: Specifies that the script is executed when the page has finished parsing (only for external scripts)

    addJSContent

    public any addJSContent(any content, [boolean sendToHeader='false'])

    Generate a script tag with custom JS content

    Parameters:
    content - The content to render out
    sendToHeader - Send to header or returned HTML content

    addStyleContent

    public any addStyleContent(any content, [boolean sendToHeader='false'])

    Generate a style tag with custom CSS content

    Parameters:
    content - The content to render out
    sendToHeader - Send to header or returned HTML content

    anchor

    public any anchor(any name, [any text=''], [struct data='[runtime expression]'])

    Generate anchors

    Parameters:
    name - The name of the anchor
    text - The text of the link
    data - The data-{key} elements to add

    arrayToTable

    public any arrayToTable(any data, [string includes=''], [string excludes=''], any buffer)

    Convert a table out of an array of structs

    Parameters:
    data - The array to convert into a table
    includes - The columns to include
    excludes - The columns to exclude
    buffer - The output buffer

    audio

    public any audio(any src, [boolean autoplay='false'], [boolean controls='true'], [boolean loop='false'], [boolean preload='false'], [boolean noBaseURL='false'], [any name=''], [any data='[runtime expression]'])

    HTML Audio Tag

    Parameters:
    src - The source URL or array or list of URL's to create video tags for
    autoplay - Whether or not to start playing the video as soon as it can
    controls - Whether or not to show controls on the video player
    loop - Whether or not to loop the video over and over again
    preload - If true, the video will be loaded at page load, and ready to run. Ignored if 'autoplay' is present
    noBaseURL - Defaults to false. If you want to NOT append a request's ses or html base url then set this argument to true
    name - The name tag
    data - A structure that will add data-{key} elements to the HTML control

    autoDiscoveryLink

    public any autoDiscoveryLink([any type='RSS'], [any href], [any rel='alternate'], [any title=''], [struct data='[runtime expression]'])

    Creates auto discovery links for RSS and ATOM feeds.

    Parameters:
    type - Type of feed: RSS or ATOM or Custom Type
    href - Te href link to discover
    rel - The rel attribute
    title - The title attribute
    data - Struct for data-key elements

    bindValue

    private any bindValue(any args)

    Bind entity values

    Parameters:
    args - The argument structures

    br

    public any br([numeric count='1'])

    Generate line breaks

    Parameters:
    count - The number

    button

    public any button([any name=''], [any value=''], [boolean disabled='false'], [any type='button'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a button. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    type - The type of button to create: button, reset or submit
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    canvas

    public any canvas(any id, [any width=''], [any height=''], [any data='[runtime expression]'])

    HTML Canvas Tag

    Parameters:
    id - The id of the canvas
    width - The width tag
    height - The height tag
    data - A structure that will add data-{key} elements to the HTML control

    checkbox

    public any checkbox([any name=''], [any value='true'], [boolean disabled='false'], [boolean checked='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a checkbox field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    checked - Checked
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    docType

    public any docType([any type='html5'])

    Render a doctype by type name: xhtml11,xhtml1-strict,xhtml-trans,xthml-frame,html5,html4-strict,html4-trans,html4-frame

    Parameters:
    type

    elixir

    public any elixir(any fileName, [any buildDirectory='build'], [boolean sendToHeader='true'], [boolean async='false'], [boolean defer='false'])

    Adds the versioned path for an asset to the view using ColdBox Elixir

    Parameters:
    fileName - The asset path to find relative to the includes convention directory
    buildDirectory - The build directory inside the includes convention directory
    sendToHeader - Send to the header via htmlhead by default, else it returns the content
    async - HTML5 JavaScript argument: Specifies that the script is executed asynchronously (only for external scripts)
    defer - HTML5 JavaScript argument: Specifies that the script is executed when the page has finished parsing (only for external scripts)

    elixirPath

    public any elixirPath(any fileName, [any buildDirectory='build'], [boolean useModuleRoot='false'])

    Adds the versioned path for an asset to the view using ColdBox Elixir

    Parameters:
    fileName - The asset path to find relative to the includes convention directory
    buildDirectory - The build directory inside the includes convention directory
    useModuleRoot - If true, use the module root as the root of the file path

    emailField

    public any emailField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out an email field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    readonly - Readonly
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    endFieldSet

    public any endFieldSet()

    End a fieldset


    endForm

    public any endForm()

    End a form


    entityFields

    public any entityFields(any entity, [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any fieldwrapper=''], [struct fieldWrapperAttrs='[runtime expression]'], [struct labelAttrs='[runtime expression]'], [any labelwrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any textareas=''], [boolean booleanSelect='true'], [boolean showRelations='true'], [struct manytoone='[runtime expression]'], [struct manytomany='[runtime expression]'], [boolean inputInsideLabel='false'])

    Create fields based on entity properties and relationships

    Parameters:
    entity - The entity binded to this control
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    fieldwrapper - The wrapper tag to use around the field items. Empty by default
    fieldWrapperAttrs - Attributes to add to the field wrapper tag. Empty by default
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelwrapper - The wrapper tag to use around the label items. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    textareas - A list of property names that you want as textareas
    booleanSelect - If a boolean is detected a dropdown is generated, if false, then radio buttons
    showRelations - If true it will show relation tables for one to one and one to many
    manytoone - A structure of data to help with many to one relationships on how they are presented. Possible key values for each key are [valuecolumn='',namecolumn='',criteria={},sortorder=string]. Example: {criteria={productid=1},sortorder='Department desc'}
    manytomany - A structure of data to help with many to one relationships on how they are presented. Possible key values for each key are [valuecolumn='',namecolumn='',criteria={},sortorder=string,selectColumn='']. Example: {criteria={productid=1},sortorder='Department desc'}
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    fileField

    public any fileField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a file field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    readonly - Readonly
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    flattenAttributes

    private any flattenAttributes(struct target, [any excludes=''], any buffer)

    flatten a struct of attributes to strings and returns the incoming buffer

    Parameters:
    target - The target
    excludes - The excludes list
    buffer - The buffer object

    getColumnArray

    private array getColumnArray(any qry, any columnName)

    Returns an array of values from the query and column

    Parameters:
    qry - The target query
    columnName - The column name to use

    getSettings

    public string getSettings()


    heading

    public any heading(any content, [numeric size='1'])

    Generate headers

    Parameters:
    content - The content
    size - The size

    hiddenField

    public any hiddenField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a hidden field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    readonly - Readonly
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    href

    public any href([any href=''], [any text=''], [any queryString=''], [any title=''], [boolean noBaseURL='false'], [struct data='[runtime expression]'])

    Create href tags, using the SES base URL or not

    Parameters:
    href - Where to link to, this can be an action, absolute, etc If not set, we will create a link to the current executed event.
    text - The text of the link
    queryString - The query string to append, if needed.
    title - The title attribute
    noBaseURL - Defaults to false. If you want to NOT append a request's ses or html base url, then set this to true
    data - A structure that will add data-{key} elements to the HTML control

    imageButton

    public any imageButton(any src, [any name=''], [boolean disabled='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a image button. Remember that any extra arguments are passed as tag attributes

    Parameters:
    src - The image source
    name - The name of the textarea
    disabled - Disabled
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    img

    public any img(any src, [any alt=''], [any class=''], [any width=''], [any height=''], [any title=''], [any rel=''], [any name=''], [boolean noBaseURL='false'], [struct data='[runtime expression]'])

    Create image tags using the SES base URL or not

    Parameters:
    src - The source URL to link to
    alt - The alt tag
    class - The class tag
    width - The width tag
    height - The height tag
    title - The title tag
    rel - The rel tag
    name - The name tag
    noBaseURL - Defaults to false. If you want to NOT append a request's ses or html base url then set this argument to true
    data - A structure that will add data-{key} elements to the HTML control

    inputField

    public any inputField([any type='text'], [any name=''], [any value=''], [boolean disabled='false'], [boolean checked='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out an input field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    type - The type of input field to create, defaults to text
    name - The name of the textarea
    value - The value of the field
    disabled - Disabled
    checked - Checked
    readonly - Read only
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    label

    public any label(any field, [any content=''], [struct labelAttrs='[runtime expression]'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [struct data='[runtime expression]'], [any class=''], [numeric labelMode='0'])

    Render a label tag. Remember that any extra arguments are passed as tag attributes

    Parameters:
    field - The for who attribute
    content - The label content. If not passed the field is used
    labelAttrs - Attributes to add to the label tag. Empty by default
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    data - A structure that will add data-{key} elements to the HTML control
    class - The class to be applied to the label
    labelMode - 0 - Open and close the label tag with wrappers around it (default); 1 - Open the wrapper and the label but do not close them; 2- Output the content, close the label and the wrapper

    link

    public any link([any href=''], [any rel='stylesheet'], [any type='text/css'], [any title=''], [any media=''], [boolean noBaseURL='false'], [any charset='UTF-8'], [boolean sendToHeader='false'], [struct data='[runtime expression]'])

    Create link tags, using the SES base URL or not

    Parameters:
    href - The href link to link to
    rel - The rel attribute
    type - The type attribute
    title - The title attribute
    media - The media attribute
    noBaseURL - Defaults to false. If you want to NOT append a request's ses or html base url then set this argument to true
    charset - The charset to add, defaults to utf-8
    sendToHeader - Send to the header via htmlhead by default, else it returns the content
    data - A structure that will add data-{key} elements to the HTML control

    makePretty

    private string makePretty(any text)

    Make pretty text

    Parameters:
    text - Target

    meta

    public any meta(any name, [any content=''], [any type='name'], [boolean sendToHeader='false'], [any property=''])

    Generate meta tags

    Parameters:
    name - A name for the meta tag or an array of struct data to convert to meta tags.Keys [name,content,type]
    content - The content attribute
    type - Either ''name'' or ''equiv'' which produces http-equiv instead of the name
    sendToHeader - Send to the header via htmlhead by default, else it returns the content
    property - The property attribute

    nbs

    public any nbs([numeric count='1'])

    Generate non-breaking spaces

    Parameters:
    count - The number

    normalizeID

    private any normalizeID(any args)

    Normalize ID with name arguments

    Parameters:
    args - The argument structures

    objectsToTable

    public any objectsToTable(any data, [string includes=''], [string excludes=''], any buffer)

    Convert a table out of an array of objects

    Parameters:
    data - The array to convert into a table
    includes - The columns to include
    excludes - The columns to exclude
    buffer - The output buffer

    ol

    public any ol(any values, [string column=''])

    Create ordered lists according to passed in values and arguments, compressed HTML

    Parameters:
    values - Array or list of values
    column - If the values is a query, this is the name of the column to get the data from to create the list

    onMissingMethod

    public any onMissingMethod([any missingMethodName], [any missingMethodArguments])

    Intercepts any XX() call to the helper, meaning rendering ANY type of tag. The first positional argument will be treated as the content of the tag or you can use the content argument directly:

    #html.myWidget( 'is Awesome' )# -> is Awesome
    #html.contacts( class='bold', content='My Contacts' )# -> My Contacts
    

    Parameters:
    missingMethodName
    missingMethodArguments

    options

    public any options([any values], [any column=''], [any nameColumn=''], [any selectedIndex='0'], [any selectedValue=''])

    Render out options.

    Parameters:
    values - An array, list or query to build options for
    column - If using a query or array of objects the column to display as value and name
    nameColumn - If using a query or array of objects, the name column to display, if not passed defaults to the value column
    selectedIndex - selected index(s) if any. So either one or a list of indexes
    selectedValue - selected value(s) if any. So either one or a list of values

    passIncludeExclude

    private boolean passIncludeExclude(any value, [any includes=''], [any excludes=''])

    checks if a list include exclude check passes

    Parameters:
    value - The target
    includes - The includes list
    excludes - The excludes list

    passwordField

    public any passwordField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a password field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    readonly - Readonly
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    prepareBaseLink

    private string prepareBaseLink([boolean noBaseURL='false'], [any src])

    Prepare a base link

    Parameters:
    noBaseURL - Indicator for building
    src - The source target

    queryToTable

    public any queryToTable(any data, [string includes=''], [string excludes=''], any buffer)

    Convert a table out of a query, usually the header tag has already printed

    Parameters:
    data - The query to convert into a table
    includes - The columns to include
    excludes - The columns to exclude
    buffer - The output buffer

    radioButton

    public any radioButton([any name=''], [any value='true'], [boolean disabled='false'], [boolean checked='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a radiobutton field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    checked - Checked
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    resetButton

    public any resetButton([any name=''], [any value='Reset'], [boolean disabled='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a reset button. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    select

    public any select([any name=''], [any options=''], [any column=''], [any nameColumn=''], [any selectedIndex='0'], [any selectedValue=''], [any bind=''], [any bindProperty=''], [boolean disabled='false'], [boolean multiple='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelwrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [struct data='[runtime expression]'], [any labelClass=''], [boolean inputInsideLabel='false'])

    Render out a select tag. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the field
    options - The value for the options, usually by calling our options() method
    column - If using a query or array of objects the column to display as value and name
    nameColumn - If using a query or array of objects, the name column to display, if not passed defaults to the value column
    selectedIndex - selected index
    selectedValue - selected value if any
    bind - The entity binded to this control
    bindProperty - The property to use for the value, by convention we use the name attribute
    disabled - Disabled button or not?
    multiple - multiple button or not?
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelwrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    data - A structure that will add data-{key} elements to the HTML control
    labelClass - The class to be applied to the label
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    setSettings

    public any setSettings(any settings)

    Parameters:
    settings

    slugify

    public any slugify(any str, [numeric maxLength='0'], [any allow=''])

    Slugify a string for URL Safety

    Parameters:
    str - Target to slugify
    maxLength - The maximum number of characters for the slug
    allow - a regex safe list of additional characters to allow

    startFieldSet

    public any startFieldSet([any legend=''], [struct data='[runtime expression]'])

    Build a field set with or without a legend

    Parameters:
    legend - The legend to use
    data - A structure that will add data-{key} elements to the HTML control

    startForm

    public any startForm([string action=''], [string name=''], [string method='POST'], [boolean multipart='false'], [boolean ssl], [boolean noBaseURL='false'], [struct data='[runtime expression]'])

    Create cool form tags. Any extra argument will be passed as attributes to the form tag

    Parameters:
    action - The event or route action to submit to. This will be inflated using the request's base URL if not a full http URL. If empty, then it is a self-submitting form
    name - The name of the form tag
    method - The HTTP method of the form, defaults to POST
    multipart - Set the multipart encoding type on the form, defaults to false
    ssl - If true, it will change http to https if found in the ses base url ONLY, false will remove SSL
    noBaseURL - Defaults to false. If you want to NOT append a request's ses or html base url then set this argument to true
    data - A structure that will add data-{key} elements to the HTML control

    submitButton

    public any submitButton([any name=''], [any value='Submit'], [boolean disabled='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a submit button. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    table

    public any table(any data, [any includes=''], [any excludes=''], [any name=''])

    Convert a table out of data (either a query or array of structures or array of entities)

    Parameters:
    data - The query, array of data
    includes - The columns to include
    excludes - The columns to exclude
    name - The name tag

    tag

    public any tag(any tag, [any content=''], [struct data='[runtime expression]'], [string excludes=''])

    Generate tags

    Parameters:
    tag - The tag to generate
    content - The content
    data - The data-{key} elements to add
    excludes - List of attributes to exclude from the tag generation

    textArea

    public any textArea([any name=''], [numeric cols], [numeric rows], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a textarea. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    cols - The number of columns
    rows - The number of rows
    value - The value of the textarea
    disabled - Disabled
    readonly - Readonly
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    textField

    public any textField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a text field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    readonly - Readonly
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    toHtmlList

    public any toHtmlList(any tag, any values, [any column=''], [struct data='[runtime expression]'])

    Convert a sent in tag type to an HTML list

    Parameters:
    tag - The list tag type
    values - An array or list of values
    column - If the values is a query, this is the name of the column to get the data from to create the list
    data - A structure that will add data-{key} elements to the HTML control

    ul

    public any ul(any values, [string column=''])

    Create un-ordered lists according to passed in values and arguments, compressed HTML

    Parameters:
    values - Array or list of values
    column - If the values is a query, this is the name of the column to get the data from to create the list

    urlField

    public any urlField([any name=''], [any value=''], [boolean disabled='false'], [boolean readonly='false'], [any wrapper=''], [struct wrapperAttrs='[runtime expression]'], [any groupWrapper=''], [struct groupWrapperAttrs='[runtime expression]'], [any label=''], [struct labelAttrs='[runtime expression]'], [any labelWrapper=''], [struct labelWrapperAttrs='[runtime expression]'], [any labelClass=''], [any bind=''], [any bindProperty=''], [struct data='[runtime expression]'], [boolean inputInsideLabel='false'])

    Render out a URL field. Remember that any extra arguments are passed as tag attributes

    Parameters:
    name - The name of the textarea
    value - The value of the textarea
    disabled - Disabled
    readonly - Readonly
    wrapper - The wrapper tag to use around the tag. Empty by default
    wrapperAttrs - Attributes to add to the wrapper tag. Empty by default
    groupWrapper - The wrapper tag to use around the tag and label. Empty by default
    groupWrapperAttrs - Attributes to add to the group wrapper tag. Empty by default
    label - If Passed we will prepend a label tag
    labelAttrs - Attributes to add to the label tag. Empty by default
    labelWrapper - The wrapper tag to use around the label. Empty by default
    labelWrapperAttrs - Attributes to add to the label wrapper tag. Empty by default
    labelClass - The class to be applied to the label
    bind - The entity binded to this control, the value comes by convention from the name attribute
    bindProperty - The property to use for the value, by convention we use the name attribute
    data - A structure that will add data-{key} elements to the HTML control
    inputInsideLabel - If true, closes the label tag after the input tag and puts the label text after the input tag

    video

    public any video(any src, [any width=''], [any height=''], [any poster=''], [boolean autoplay='false'], [boolean controls='true'], [boolean loop='false'], [boolean preload='false'], [boolean noBaseURL='false'], [any name=''], [any data='[runtime expression]'])

    HTML Video Tag

    Parameters:
    src - The source URL or array or list of URL's to create video tags for
    width - The width tag
    height - The height tag
    poster - The URL of the image when video is unavailable
    autoplay - Whether or not to start playing the video as soon as it can
    controls - Whether or not to show controls on the video player
    loop - Whether or not to loop the video over and over again
    preload - If true, the video will be loaded at page load, and ready to run. Ignored if 'autoplay' is present
    noBaseURL - Defaults to false. If you want to NOT append a request's ses or html base url then set this argument to true
    name - The name tag
    data - A structure that will add data-{key} elements to the HTML control

    wrapTag

    private any wrapTag(any buffer, any tag, [boolean end='false'], [struct attrs])

    Wrap a tag in the buffer

    Parameters:
    buffer - The output buffer
    tag - The tag to wrap with
    end - Start or end of tag
    attrs - The attributes of the tag