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 textspan
– column spanhtmlId
– html idsearchBar
– is this input a searchbar?pull
– [ false | right | left ] align formprepend
– 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 buttonappendDropdown
– 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 controlsblockHelpText
– a longer block of help text that breaks onto a new line and may extend beyond one linefocusedInputText
– make the input focused by providing some initial editable input textrequired
– required attribute if the field is not optionaldisabled
– add the disabled attribute on an input to prevent user inputdefaultValue
– a default value to be passed to action scripthidden
– hide the CG from the user?divWrap
– wrap in div
Return
input
– the input