contentbox.modules.contentbox-admin.models.ui

Class BootstrapFileUpload

lucee.Component
    extended by contentbox.modules.contentbox-admin.models.ui.BootstrapFileUpload

ContentBox - A Modular Content Platform Copyright since 2012 by Ortus Solutions, Corp www.ortussolutions.com/products/contentbox --- A convenient way to create a Bootstrap-themed file upload field

Class Attributes:
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Property Summary
    type property default serializable required
    any html


    • access = public
    • returntype = any
    • inject = HTMLHelper@coldbox
    true false
    Constructor Summary
    init()
          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 lucee.Component
    None

    Constructor Detail

    init

    public init()

    Constructor


    Property Detail

    html

    property any html

    Attributes:
    access - public
    required - false
    returntype - any
    inject - HTMLHelper@coldbox
    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