contentbox.plugins

Class BootstrapFileUpload

railo-context.Component
        extended by coldbox.system.FrameworkSupertype
            extended by coldbox.system.Plugin
                extended by contentbox.plugins.BootstrapFileUpload
Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any html


    • inject = coldbox:plugin:HTMLHelper
    true false
    Constructor Summary
    init(any controller)
          Constructor.
    Method Summary
    string renderIt(string name, [boolean required='true'], [string id=''], [string label], [numeric columnWidth='3'], [any useRemoveButton='true'], [any selectButtonText='Select file'], [any changeButtonText='Change'], [any removeButtonText='Remove'])
         Main method for rendering bootstrap-themed file upload field.
     
    Methods inherited from class coldbox.system.Plugin
    getpluginAuthor, getpluginAuthorURL, getPluginDescription, getPluginName, getpluginPath, getPluginVersion, getRequestCollection, getRequestContext, setpluginAuthor, setpluginAuthorURL, setPluginDescription, setPluginName, setPluginVersion
     
    Methods inherited from class coldbox.system.FrameworkSupertype
    addAsset, announceInterception, getCache, getController, getDatasource, getInstance, getInterceptor, getModel, getModuleConfig, getModuleSettings, getMyPlugin, getPlugin, getRenderer, getSetting, getSettingStructure, includeUDF, loadApplicationHelpers, locateDirectoryPath, locateFilePath, persistVariables, populateModel, renderExternalView, renderLayout, renderView, runEvent, setController, setNextEvent, setSetting, settingExists
     
    Methods inherited from class railo-context.Component
    None

    Constructor Detail

    init

    public init(any controller)

    Constructor

    Parameters:
    controller

    Property Detail

    html

    property any html

    Attributes:
    required - false
    inject - coldbox:plugin:HTMLHelper
    serializable - true

    Method Detail

    renderIt

    public string renderIt(string name, [boolean required='true'], [string id=''], [string label], [numeric columnWidth='3'], [any useRemoveButton='true'], [any selectButtonText='Select file'], [any changeButtonText='Change'], [any removeButtonText='Remove'])

    Main method for rendering bootstrap-themed file upload field

    Parameters:
    name - The name of the file field to create
    required - Whether or not the field is required (validation)
    id - The id to apply to the file field
    label - If specified, will create a label element with the specified text for the file field
    columnWidth - The number of columns that the field should occupy (bootstrap grid system)
    useRemoveButton - Whether a "remove" button should be created
    selectButtonText - The text to use for the "select" button
    changeButtonText - The text to use for the "change" button
    removeButtonText - The text to use for the "remove" button