checkbox (function)

checkbox(optionText='', inline=False, optionNumber=1, htmlId=False, inlineHelpText=False, blockHelpText=False, disabled=False, checked=False)[source]

Generate a checkbox - TBS style

Key Arguments

  • optionText – the text associated with this checkbox

  • inline – display the checkboxes inline?

  • optionNumber – option number of inline

  • htmlId – htmlId

  • 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

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

  • checked – the default checked/unchecked state of the box

Return

  • checkbox – the checkbox