formInput (function)

formInput(ttype='text', placeholder='', span=2, htmlId=False, searchBar=False, pull=False, prepend=False, append=False, button1=False, button2=False, prependDropdown=False, appendDropdown=False, inlineHelpText=False, blockHelpText=False, focusedInputText=False, rightText=False, required=False, disabled=False, defaultValue=False, hidden=False, divWrap=True)[source]

Generate a form input - TBS style

Key Arguments

  • ttype – [ text | password | datetime | datetime-local | date | month | time | week | number | float | email | url | search | tel | color ]

  • placeholder – the placeholder text

  • span – column span

  • htmlId – html id

  • searchBar – is this input a searchbar?

  • pull – [ false | right | left ] align form

  • prepend – prepend text to the input.

  • append – append text to the input.

  • button1 – do you want a button associated with the input?

  • button2 – as above for a 2nd button

    • appendDropdown – do you want a appended button-dropdown associated with the input?

    • prependDropdown – do you want a prepended button-dropdown associated with the input?

    • inlineHelpText – inline and block level support for help text that appears around form controls

    • blockHelpText – a longer block of help text that breaks onto a new line and may extend beyond one line

    • focusedInputText – make the input focused by providing some initial editable input text

    • required – required attribute if the field is not optional

    • disabled – add the disabled attribute on an input to prevent user input

    • defaultValue – a default value to be passed to action script

    • hidden – hide the CG from the user?

    • divWrap – wrap in div

Return

  • input – the input