\TbHtml

Bootstrap HTML helper.

Summary

Methods
Properties
Constants
lead()
small()
b()
i()
em()
muted()
mutedSpan()
abbr()
smallAbbr()
address()
quote()
help()
helpBlock()
code()
codeBlock()
tag()
openTag()
formTb()
beginFormTb()
statefulFormTb()
textField()
passwordField()
urlField()
emailField()
numberField()
rangeField()
dateField()
fileField()
textArea()
radioButton()
checkBox()
dropDownList()
listBox()
radioButtonList()
inlineRadioButtonList()
checkBoxList()
inlineCheckBoxList()
uneditableField()
searchQueryField()
textFieldControlGroup()
passwordFieldControlGroup()
urlFieldControlGroup()
emailFieldControlGroup()
numberFieldControlGroup()
rangeFieldControlGroup()
dateFieldControlGroup()
textAreaControlGroup()
fileFieldControlGroup()
radioButtonControlGroup()
checkBoxControlGroup()
dropDownListControlGroup()
listBoxControlGroup()
radioButtonListControlGroup()
inlineRadioButtonListControlGroup()
checkBoxListControlGroup()
inlineCheckBoxListControlGroup()
uneditableFieldControlGroup()
searchQueryControlGroup()
controlGroup()
customControlGroup()
createInput()
activeTextField()
activePasswordField()
activeUrlField()
activeEmailField()
activeNumberField()
activeRangeField()
activeDateField()
activeFileField()
activeTextArea()
activeRadioButton()
activeCheckBox()
activeDropDownList()
activeListBox()
activeRadioButtonList()
activeInlineRadioButtonList()
activeCheckBoxList()
activeInlineCheckBoxList()
activeUneditableField()
activeSearchQueryField()
activeTextFieldControlGroup()
activePasswordFieldControlGroup()
activeUrlFieldControlGroup()
activeEmailFieldControlGroup()
activeNumberFieldControlGroup()
activeRangeFieldControlGroup()
activeDateFieldControlGroup()
activeTextAreaControlGroup()
activeFileFieldControlGroup()
activeRadioButtonControlGroup()
activeCheckBoxControlGroup()
activeDropDownListControlGroup()
activeListBoxControlGroup()
activeRadioButtonListControlGroup()
activeInlineRadioButtonListControlGroup()
activeCheckBoxListControlGroup()
activeInlineCheckBoxListControlGroup()
activeUneditableFieldControlGroup()
activeSearchQueryControlGroup()
activeControlGroup()
customActiveControlGroup()
createActiveInput()
errorSummary()
error()
controls()
controlsRow()
formActions()
searchForm()
link()
button()
htmlButton()
submitButton()
resetButton()
imageButton()
linkButton()
ajaxLink()
ajaxButton()
ajaxSubmitButton()
btn()
imageRounded()
imageCircle()
imagePolaroid()
image()
icon()
dropdownToggleLink()
dropdownToggleButton()
dropdownToggleMenuLink()
buttonGroup()
verticalButtonGroup()
buttonToolbar()
buttonDropdown()
splitButtonDropdown()
tabs()
stackedTabs()
pills()
stackedPills()
navList()
nav()
menu()
menuLink()
menuHeader()
menuDivider()
tabbableTabs()
tabbablePills()
tabbable()
navbar()
navbarBrandLink()
navbarText()
navbarMenuDivider()
navbarForm()
navbarSearchForm()
navbarCollapseLink()
breadcrumbs()
pagination()
paginationLink()
pager()
pagerLink()
labelTb()
badge()
heroUnit()
pageHeader()
thumbnails()
thumbnail()
thumbnailLink()
alert()
blockAlert()
progressBar()
stripedProgressBar()
animatedProgressBar()
stackedProgressBar()
mediaList()
medias()
media()
well()
closeLink()
closeButton()
collapseLink()
modalHeader()
modalBody()
modalFooter()
tooltip()
popover()
carousel()
carouselItem()
carouselPrevLink()
carouselNextLink()
carouselIndicators()
addCssClass()
addCssStyle()
$errorSummaryCss
TEXT_ALIGN_LEFT
TEXT_ALIGN_CENTER
TEXT_ALIGN_RIGHT
TEXT_COLOR_DEFAULT
TEXT_COLOR_WARNING
TEXT_COLOR_ERROR
TEXT_COLOR_INFO
TEXT_COLOR_SUCCESS
HELP_TYPE_INLINE
HELP_TYPE_BLOCK
FORM_LAYOUT_VERTICAL
FORM_LAYOUT_HORIZONTAL
FORM_LAYOUT_INLINE
FORM_LAYOUT_SEARCH
INPUT_TYPE_TEXT
INPUT_TYPE_PASSWORD
INPUT_TYPE_URL
INPUT_TYPE_EMAIL
INPUT_TYPE_NUMBER
INPUT_TYPE_RANGE
INPUT_TYPE_DATE
INPUT_TYPE_TEXTAREA
INPUT_TYPE_FILE
INPUT_TYPE_RADIOBUTTON
INPUT_TYPE_CHECKBOX
INPUT_TYPE_DROPDOWNLIST
INPUT_TYPE_LISTBOX
INPUT_TYPE_CHECKBOXLIST
INPUT_TYPE_INLINECHECKBOXLIST
INPUT_TYPE_RADIOBUTTONLIST
INPUT_TYPE_INLINERADIOBUTTONLIST
INPUT_TYPE_UNEDITABLE
INPUT_TYPE_SEARCH
INPUT_TYPE_CUSTOM
INPUT_SIZE_MINI
INPUT_SIZE_SMALL
INPUT_SIZE_DEFAULT
INPUT_SIZE_MEDIUM
INPUT_SIZE_LARGE
INPUT_SIZE_XLARGE
INPUT_SIZE_XXLARGE
INPUT_COLOR_DEFAULT
INPUT_COLOR_WARNING
INPUT_COLOR_ERROR
INPUT_COLOR_INFO
INPUT_COLOR_SUCCESS
BUTTON_TYPE_LINK
BUTTON_TYPE_HTML
BUTTON_TYPE_SUBMIT
BUTTON_TYPE_RESET
BUTTON_TYPE_IMAGE
BUTTON_TYPE_LINKBUTTON
BUTTON_TYPE_AJAXLINK
BUTTON_TYPE_AJAXBUTTON
BUTTON_TYPE_INPUTBUTTON
BUTTON_TYPE_INPUTSUBMIT
BUTTON_COLOR_DEFAULT
BUTTON_COLOR_PRIMARY
BUTTON_COLOR_INFO
BUTTON_COLOR_SUCCESS
BUTTON_COLOR_WARNING
BUTTON_COLOR_DANGER
BUTTON_COLOR_INVERSE
BUTTON_COLOR_LINK
BUTTON_SIZE_MINI
BUTTON_SIZE_SMALL
BUTTON_SIZE_DEFAULT
BUTTON_SIZE_LARGE
BUTTON_TOGGLE_CHECKBOX
BUTTON_TOGGLE_RADIO
IMAGE_TYPE_ROUNDED
IMAGE_TYPE_CIRCLE
IMAGE_TYPE_POLAROID
NAV_TYPE_NONE
NAV_TYPE_TABS
NAV_TYPE_PILLS
NAV_TYPE_LIST
TABS_PLACEMENT_ABOVE
TABS_PLACEMENT_BELOW
TABS_PLACEMENT_LEFT
TABS_PLACEMENT_RIGHT
NAVBAR_DISPLAY_NONE
NAVBAR_DISPLAY_FIXEDTOP
NAVBAR_DISPLAY_FIXEDBOTTOM
NAVBAR_DISPLAY_STATICTOP
NAVBAR_COLOR_INVERSE
PAGINATION_SIZE_MINI
PAGINATION_SIZE_SMALL
PAGINATION_SIZE_DEFAULT
PAGINATION_SIZE_LARGE
PAGINATION_ALIGN_LEFT
PAGINATION_ALIGN_CENTER
PAGINATION_ALIGN_RIGHT
LABEL_COLOR_DEFAULT
LABEL_COLOR_SUCCESS
LABEL_COLOR_WARNING
LABEL_COLOR_IMPORTANT
LABEL_COLOR_INFO
LABEL_COLOR_INVERSE
BADGE_COLOR_DEFAULT
BADGE_COLOR_SUCCESS
BADGE_COLOR_WARNING
BADGE_COLOR_IMPORTANT
BADGE_COLOR_INFO
BADGE_COLOR_INVERSE
TOOLTIP_PLACEMENT_TOP
TOOLTIP_PLACEMENT_BOTTOM
TOOLTIP_PLACEMENT_LEFT
TOOLTIP_PLACEMENT_RIGHT
TOOLTIP_TRIGGER_CLICK
TOOLTIP_TRIGGER_HOVER
TOOLTIP_TRIGGER_FOCUS
TOOLTIP_TRIGGER_MANUAL
POPOVER_PLACEMENT_TOP
POPOVER_PLACEMENT_BOTTOM
POPOVER_PLACEMENT_LEFT
POPOVER_PLACEMENT_RIGHT
POPOVER_TRIGGER_CLICK
POPOVER_TRIGGER_HOVER
POPOVER_TRIGGER_FOCUS
POPOVER_TRIGGER_MANUAL
ALERT_COLOR_DEFAULT
ALERT_COLOR_INFO
ALERT_COLOR_SUCCESS
ALERT_COLOR_WARNING
ALERT_COLOR_ERROR
ALERT_COLOR_DANGER
PROGRESS_COLOR_DEFAULT
PROGRESS_COLOR_INFO
PROGRESS_COLOR_SUCCESS
PROGRESS_COLOR_WARNING
PROGRESS_COLOR_DANGER
WELL_SIZE_SMALL
WELL_SIZE_DEFAULT
WELL_SIZE_LARGE
PULL_LEFT
PULL_RIGHT
CLOSE_DISMISS_ALERT
CLOSE_DISMISS_MODAL
DETAIL_TYPE_STRIPED
DETAIL_TYPE_BORDERED
DETAIL_TYPE_CONDENSED
DETAIL_TYPE_HOVER
GRID_TYPE_STRIPED
GRID_TYPE_BORDERED
GRID_TYPE_CONDENSED
GRID_TYPE_HOVER
AFFIX_POSITION_TOP
AFFIX_POSITION_BOTTOM
ICON_COLOR_DEFAULT
ICON_COLOR_WHITE
ICON_GLASS
ICON_MUSIC
ICON_SEARCH
ICON_ENVELOPE
ICON_HEART
ICON_STAR
ICON_STAR_EMPTY
ICON_USER
ICON_FILM
ICON_TH_LARGE
ICON_TH
ICON_TH_LIST
ICON_OK
ICON_REMOVE
ICON_ZOOM_IN
ICON_ZOOM_OUT
ICON_OFF
ICON_SIGNAL
ICON_COG
ICON_TRASH
ICON_HOME
ICON_FILE
ICON_TIME
ICON_ROAD
ICON_DOWNLOAD_ALT
ICON_DOWNLOAD
ICON_UPLOAD
ICON_INBOX
ICON_PLAY_CIRCLE
ICON_REPEAT
ICON_REFRESH
ICON_LIST_ALT
ICON_LOCK
ICON_FLAG
ICON_HEADPHONES
ICON_VOLUME_OFF
ICON_VOLUME_DOWN
ICON_VOLUME_UP
ICON_QRCODE
ICON_BARCODE
ICON_TAG
ICON_TAGS
ICON_BOOK
ICON_BOOKMARK
ICON_PRINT
ICON_CAMERA
ICON_FONT
ICON_BOLD
ICON_ITALIC
ICON_TEXT_HEIGHT
ICON_TEXT_WIDTH
ICON_ALIGN_LEFT
ICON_ALIGN_CENTER
ICON_ALIGN_RIGHT
ICON_ALIGN_JUSTIFY
ICON_LIST
ICON_INDENT_LEFT
ICON_INDENT_RIGHT
ICON_FACETIME_VIDEO
ICON_PICTURE
ICON_PENCIL
ICON_MAP_MARKER
ICON_ADJUST
ICON_TINT
ICON_EDIT
ICON_SHARE
ICON_CHECK
ICON_MOVE
ICON_STEP_BACKWARD
ICON_FAST_BACKWARD
ICON_BACKWARD
ICON_PLAY
ICON_PAUSE
ICON_STOP
ICON_FORWARD
ICON_FAST_FORWARD
ICON_STEP_FORWARD
ICON_EJECT
ICON_CHEVRON_LEFT
ICON_CHEVRON_RIGHT
ICON_PLUS_SIGN
ICON_MINUS_SIGN
ICON_REMOVE_SIGN
ICON_OK_SIGN
ICON_QUESTION_SIGN
ICON_INFO_SIGN
ICON_SCREENSHOT
ICON_REMOVE_CIRCLE
ICON_OK_CIRCLE
ICON_BAN_CIRCLE
ICON_ARROW_LEFT
ICON_ARROW_RIGHT
ICON_ARROW_UP
ICON_ARROW_DOWN
ICON_SHARE_ALT
ICON_RESIZE_FULL
ICON_RESIZE_SMALL
ICON_PLUS
ICON_MINUS
ICON_ASTERISK
ICON_EXCLAMATION_SIGN
ICON_GIFT
ICON_LEAF
ICON_FIRE
ICON_EYE_OPEN
ICON_EYE_CLOSE
ICON_WARNING_SIGN
ICON_PLANE
ICON_CALENDAR
ICON_RANDOM
ICON_COMMENT
ICON_MAGNET
ICON_CHEVRON_UP
ICON_CHEVRON_DOWN
ICON_RETWEET
ICON_SHOPPING_CART
ICON_FOLDER_CLOSE
ICON_FOLDER_OPEN
ICON_RESIZE_VERTICAL
ICON_RESIZE_HORIZONTAL
ICON_HDD
ICON_BULLHORN
ICON_BELL
ICON_CERTFICATE
ICON_THUMBS_UP
ICON_THUMBS_DOWN
ICON_HAND_RIGHT
ICON_HAND_LEFT
ICON_HAND_UP
ICON_HAND_DOWN
ICON_CIRCLE_ARROW_RIGHT
ICON_CIRCLE_ARROW_LEFT
ICON_CIRCLE_ARROW_UP
ICON_CIRCLE_ARROW_DOWN
ICON_GLOBE
ICON_WRENCH
ICON_TASKS
ICON_FILTER
ICON_BRIEFCASE
ICON_FULLSCREEN
CLOSE_TEXT
textInputField()
createCheckBoxAndRadioButtonLabel()
normalizeCheckBoxAndRadio()
activeTextInputField()
getAddOnClasses()
inputAddOn()
inputHelp()
normalizeInputOptions()
btnDropdown()
createButton()
dropdown()
dropdownToggle()
menuDropdown()
normalizeTabs()
bar()
close()
tooltipPopover()
addSpanClass()
addPullClass()
addTextAlignClass()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

TEXT_ALIGN_LEFT

TEXT_ALIGN_LEFT

TEXT_ALIGN_CENTER

TEXT_ALIGN_CENTER

TEXT_ALIGN_RIGHT

TEXT_ALIGN_RIGHT

TEXT_COLOR_DEFAULT

TEXT_COLOR_DEFAULT

TEXT_COLOR_WARNING

TEXT_COLOR_WARNING

TEXT_COLOR_ERROR

TEXT_COLOR_ERROR

TEXT_COLOR_INFO

TEXT_COLOR_INFO

TEXT_COLOR_SUCCESS

TEXT_COLOR_SUCCESS

HELP_TYPE_INLINE

HELP_TYPE_INLINE

HELP_TYPE_BLOCK

HELP_TYPE_BLOCK

FORM_LAYOUT_VERTICAL

FORM_LAYOUT_VERTICAL

FORM_LAYOUT_HORIZONTAL

FORM_LAYOUT_HORIZONTAL

FORM_LAYOUT_INLINE

FORM_LAYOUT_INLINE

INPUT_TYPE_TEXT

INPUT_TYPE_TEXT

INPUT_TYPE_PASSWORD

INPUT_TYPE_PASSWORD

INPUT_TYPE_URL

INPUT_TYPE_URL

INPUT_TYPE_EMAIL

INPUT_TYPE_EMAIL

INPUT_TYPE_NUMBER

INPUT_TYPE_NUMBER

INPUT_TYPE_RANGE

INPUT_TYPE_RANGE

INPUT_TYPE_DATE

INPUT_TYPE_DATE

INPUT_TYPE_TEXTAREA

INPUT_TYPE_TEXTAREA

INPUT_TYPE_FILE

INPUT_TYPE_FILE

INPUT_TYPE_RADIOBUTTON

INPUT_TYPE_RADIOBUTTON

INPUT_TYPE_CHECKBOX

INPUT_TYPE_CHECKBOX

INPUT_TYPE_DROPDOWNLIST

INPUT_TYPE_DROPDOWNLIST

INPUT_TYPE_LISTBOX

INPUT_TYPE_LISTBOX

INPUT_TYPE_CHECKBOXLIST

INPUT_TYPE_CHECKBOXLIST

INPUT_TYPE_INLINECHECKBOXLIST

INPUT_TYPE_INLINECHECKBOXLIST

INPUT_TYPE_RADIOBUTTONLIST

INPUT_TYPE_RADIOBUTTONLIST

INPUT_TYPE_INLINERADIOBUTTONLIST

INPUT_TYPE_INLINERADIOBUTTONLIST

INPUT_TYPE_UNEDITABLE

INPUT_TYPE_UNEDITABLE

INPUT_TYPE_CUSTOM

INPUT_TYPE_CUSTOM

INPUT_SIZE_MINI

INPUT_SIZE_MINI

INPUT_SIZE_SMALL

INPUT_SIZE_SMALL

INPUT_SIZE_DEFAULT

INPUT_SIZE_DEFAULT

INPUT_SIZE_MEDIUM

INPUT_SIZE_MEDIUM

INPUT_SIZE_LARGE

INPUT_SIZE_LARGE

INPUT_SIZE_XLARGE

INPUT_SIZE_XLARGE

INPUT_SIZE_XXLARGE

INPUT_SIZE_XXLARGE

INPUT_COLOR_DEFAULT

INPUT_COLOR_DEFAULT

INPUT_COLOR_WARNING

INPUT_COLOR_WARNING

INPUT_COLOR_ERROR

INPUT_COLOR_ERROR

INPUT_COLOR_INFO

INPUT_COLOR_INFO

INPUT_COLOR_SUCCESS

INPUT_COLOR_SUCCESS

BUTTON_TYPE_HTML

BUTTON_TYPE_HTML

BUTTON_TYPE_SUBMIT

BUTTON_TYPE_SUBMIT

BUTTON_TYPE_RESET

BUTTON_TYPE_RESET

BUTTON_TYPE_IMAGE

BUTTON_TYPE_IMAGE

BUTTON_TYPE_LINKBUTTON

BUTTON_TYPE_LINKBUTTON

BUTTON_TYPE_AJAXBUTTON

BUTTON_TYPE_AJAXBUTTON

BUTTON_TYPE_INPUTBUTTON

BUTTON_TYPE_INPUTBUTTON

BUTTON_TYPE_INPUTSUBMIT

BUTTON_TYPE_INPUTSUBMIT

BUTTON_COLOR_DEFAULT

BUTTON_COLOR_DEFAULT

BUTTON_COLOR_PRIMARY

BUTTON_COLOR_PRIMARY

BUTTON_COLOR_INFO

BUTTON_COLOR_INFO

BUTTON_COLOR_SUCCESS

BUTTON_COLOR_SUCCESS

BUTTON_COLOR_WARNING

BUTTON_COLOR_WARNING

BUTTON_COLOR_DANGER

BUTTON_COLOR_DANGER

BUTTON_COLOR_INVERSE

BUTTON_COLOR_INVERSE

BUTTON_SIZE_MINI

BUTTON_SIZE_MINI

BUTTON_SIZE_SMALL

BUTTON_SIZE_SMALL

BUTTON_SIZE_DEFAULT

BUTTON_SIZE_DEFAULT

BUTTON_SIZE_LARGE

BUTTON_SIZE_LARGE

BUTTON_TOGGLE_CHECKBOX

BUTTON_TOGGLE_CHECKBOX

BUTTON_TOGGLE_RADIO

BUTTON_TOGGLE_RADIO

IMAGE_TYPE_ROUNDED

IMAGE_TYPE_ROUNDED

IMAGE_TYPE_CIRCLE

IMAGE_TYPE_CIRCLE

IMAGE_TYPE_POLAROID

IMAGE_TYPE_POLAROID

NAV_TYPE_NONE

NAV_TYPE_NONE

NAV_TYPE_TABS

NAV_TYPE_TABS

NAV_TYPE_PILLS

NAV_TYPE_PILLS

NAV_TYPE_LIST

NAV_TYPE_LIST

TABS_PLACEMENT_ABOVE

TABS_PLACEMENT_ABOVE

TABS_PLACEMENT_BELOW

TABS_PLACEMENT_BELOW

TABS_PLACEMENT_LEFT

TABS_PLACEMENT_LEFT

TABS_PLACEMENT_RIGHT

TABS_PLACEMENT_RIGHT

NAVBAR_DISPLAY_NONE

NAVBAR_DISPLAY_NONE

NAVBAR_DISPLAY_FIXEDTOP

NAVBAR_DISPLAY_FIXEDTOP

NAVBAR_DISPLAY_FIXEDBOTTOM

NAVBAR_DISPLAY_FIXEDBOTTOM

NAVBAR_DISPLAY_STATICTOP

NAVBAR_DISPLAY_STATICTOP

NAVBAR_COLOR_INVERSE

NAVBAR_COLOR_INVERSE

PAGINATION_SIZE_MINI

PAGINATION_SIZE_MINI

PAGINATION_SIZE_SMALL

PAGINATION_SIZE_SMALL

PAGINATION_SIZE_DEFAULT

PAGINATION_SIZE_DEFAULT

PAGINATION_SIZE_LARGE

PAGINATION_SIZE_LARGE

PAGINATION_ALIGN_LEFT

PAGINATION_ALIGN_LEFT

PAGINATION_ALIGN_CENTER

PAGINATION_ALIGN_CENTER

PAGINATION_ALIGN_RIGHT

PAGINATION_ALIGN_RIGHT

LABEL_COLOR_DEFAULT

LABEL_COLOR_DEFAULT

LABEL_COLOR_SUCCESS

LABEL_COLOR_SUCCESS

LABEL_COLOR_WARNING

LABEL_COLOR_WARNING

LABEL_COLOR_IMPORTANT

LABEL_COLOR_IMPORTANT

LABEL_COLOR_INFO

LABEL_COLOR_INFO

LABEL_COLOR_INVERSE

LABEL_COLOR_INVERSE

BADGE_COLOR_DEFAULT

BADGE_COLOR_DEFAULT

BADGE_COLOR_SUCCESS

BADGE_COLOR_SUCCESS

BADGE_COLOR_WARNING

BADGE_COLOR_WARNING

BADGE_COLOR_IMPORTANT

BADGE_COLOR_IMPORTANT

BADGE_COLOR_INFO

BADGE_COLOR_INFO

BADGE_COLOR_INVERSE

BADGE_COLOR_INVERSE

TOOLTIP_PLACEMENT_TOP

TOOLTIP_PLACEMENT_TOP

TOOLTIP_PLACEMENT_BOTTOM

TOOLTIP_PLACEMENT_BOTTOM

TOOLTIP_PLACEMENT_LEFT

TOOLTIP_PLACEMENT_LEFT

TOOLTIP_PLACEMENT_RIGHT

TOOLTIP_PLACEMENT_RIGHT

TOOLTIP_TRIGGER_CLICK

TOOLTIP_TRIGGER_CLICK

TOOLTIP_TRIGGER_HOVER

TOOLTIP_TRIGGER_HOVER

TOOLTIP_TRIGGER_FOCUS

TOOLTIP_TRIGGER_FOCUS

TOOLTIP_TRIGGER_MANUAL

TOOLTIP_TRIGGER_MANUAL

POPOVER_PLACEMENT_TOP

POPOVER_PLACEMENT_TOP

POPOVER_PLACEMENT_BOTTOM

POPOVER_PLACEMENT_BOTTOM

POPOVER_PLACEMENT_LEFT

POPOVER_PLACEMENT_LEFT

POPOVER_PLACEMENT_RIGHT

POPOVER_PLACEMENT_RIGHT

POPOVER_TRIGGER_CLICK

POPOVER_TRIGGER_CLICK

POPOVER_TRIGGER_HOVER

POPOVER_TRIGGER_HOVER

POPOVER_TRIGGER_FOCUS

POPOVER_TRIGGER_FOCUS

POPOVER_TRIGGER_MANUAL

POPOVER_TRIGGER_MANUAL

ALERT_COLOR_DEFAULT

ALERT_COLOR_DEFAULT

ALERT_COLOR_INFO

ALERT_COLOR_INFO

ALERT_COLOR_SUCCESS

ALERT_COLOR_SUCCESS

ALERT_COLOR_WARNING

ALERT_COLOR_WARNING

ALERT_COLOR_ERROR

ALERT_COLOR_ERROR

ALERT_COLOR_DANGER

ALERT_COLOR_DANGER

PROGRESS_COLOR_DEFAULT

PROGRESS_COLOR_DEFAULT

PROGRESS_COLOR_INFO

PROGRESS_COLOR_INFO

PROGRESS_COLOR_SUCCESS

PROGRESS_COLOR_SUCCESS

PROGRESS_COLOR_WARNING

PROGRESS_COLOR_WARNING

PROGRESS_COLOR_DANGER

PROGRESS_COLOR_DANGER

WELL_SIZE_SMALL

WELL_SIZE_SMALL

WELL_SIZE_DEFAULT

WELL_SIZE_DEFAULT

WELL_SIZE_LARGE

WELL_SIZE_LARGE

PULL_LEFT

PULL_LEFT

PULL_RIGHT

PULL_RIGHT

CLOSE_DISMISS_ALERT

CLOSE_DISMISS_ALERT

CLOSE_DISMISS_MODAL

CLOSE_DISMISS_MODAL

DETAIL_TYPE_STRIPED

DETAIL_TYPE_STRIPED

DETAIL_TYPE_BORDERED

DETAIL_TYPE_BORDERED

DETAIL_TYPE_CONDENSED

DETAIL_TYPE_CONDENSED

DETAIL_TYPE_HOVER

DETAIL_TYPE_HOVER

GRID_TYPE_STRIPED

GRID_TYPE_STRIPED

GRID_TYPE_BORDERED

GRID_TYPE_BORDERED

GRID_TYPE_CONDENSED

GRID_TYPE_CONDENSED

GRID_TYPE_HOVER

GRID_TYPE_HOVER

AFFIX_POSITION_TOP

AFFIX_POSITION_TOP

AFFIX_POSITION_BOTTOM

AFFIX_POSITION_BOTTOM

ICON_COLOR_DEFAULT

ICON_COLOR_DEFAULT

ICON_COLOR_WHITE

ICON_COLOR_WHITE

ICON_GLASS

ICON_GLASS

ICON_MUSIC

ICON_MUSIC

ICON_ENVELOPE

ICON_ENVELOPE

ICON_HEART

ICON_HEART

ICON_STAR

ICON_STAR

ICON_STAR_EMPTY

ICON_STAR_EMPTY

ICON_USER

ICON_USER

ICON_FILM

ICON_FILM

ICON_TH_LARGE

ICON_TH_LARGE

ICON_TH

ICON_TH

ICON_TH_LIST

ICON_TH_LIST

ICON_OK

ICON_OK

ICON_REMOVE

ICON_REMOVE

ICON_ZOOM_IN

ICON_ZOOM_IN

ICON_ZOOM_OUT

ICON_ZOOM_OUT

ICON_OFF

ICON_OFF

ICON_SIGNAL

ICON_SIGNAL

ICON_COG

ICON_COG

ICON_TRASH

ICON_TRASH

ICON_HOME

ICON_HOME

ICON_FILE

ICON_FILE

ICON_TIME

ICON_TIME

ICON_ROAD

ICON_ROAD

ICON_DOWNLOAD_ALT

ICON_DOWNLOAD_ALT

ICON_DOWNLOAD

ICON_DOWNLOAD

ICON_UPLOAD

ICON_UPLOAD

ICON_INBOX

ICON_INBOX

ICON_PLAY_CIRCLE

ICON_PLAY_CIRCLE

ICON_REPEAT

ICON_REPEAT

ICON_REFRESH

ICON_REFRESH

ICON_LIST_ALT

ICON_LIST_ALT

ICON_LOCK

ICON_LOCK

ICON_FLAG

ICON_FLAG

ICON_HEADPHONES

ICON_HEADPHONES

ICON_VOLUME_OFF

ICON_VOLUME_OFF

ICON_VOLUME_DOWN

ICON_VOLUME_DOWN

ICON_VOLUME_UP

ICON_VOLUME_UP

ICON_QRCODE

ICON_QRCODE

ICON_BARCODE

ICON_BARCODE

ICON_TAG

ICON_TAG

ICON_TAGS

ICON_TAGS

ICON_BOOK

ICON_BOOK

ICON_BOOKMARK

ICON_BOOKMARK

ICON_PRINT

ICON_PRINT

ICON_CAMERA

ICON_CAMERA

ICON_FONT

ICON_FONT

ICON_BOLD

ICON_BOLD

ICON_ITALIC

ICON_ITALIC

ICON_TEXT_HEIGHT

ICON_TEXT_HEIGHT

ICON_TEXT_WIDTH

ICON_TEXT_WIDTH

ICON_ALIGN_LEFT

ICON_ALIGN_LEFT

ICON_ALIGN_CENTER

ICON_ALIGN_CENTER

ICON_ALIGN_RIGHT

ICON_ALIGN_RIGHT

ICON_ALIGN_JUSTIFY

ICON_ALIGN_JUSTIFY

ICON_LIST

ICON_LIST

ICON_INDENT_LEFT

ICON_INDENT_LEFT

ICON_INDENT_RIGHT

ICON_INDENT_RIGHT

ICON_FACETIME_VIDEO

ICON_FACETIME_VIDEO

ICON_PICTURE

ICON_PICTURE

ICON_PENCIL

ICON_PENCIL

ICON_MAP_MARKER

ICON_MAP_MARKER

ICON_ADJUST

ICON_ADJUST

ICON_TINT

ICON_TINT

ICON_EDIT

ICON_EDIT

ICON_SHARE

ICON_SHARE

ICON_CHECK

ICON_CHECK

ICON_MOVE

ICON_MOVE

ICON_STEP_BACKWARD

ICON_STEP_BACKWARD

ICON_FAST_BACKWARD

ICON_FAST_BACKWARD

ICON_BACKWARD

ICON_BACKWARD

ICON_PLAY

ICON_PLAY

ICON_PAUSE

ICON_PAUSE

ICON_STOP

ICON_STOP

ICON_FORWARD

ICON_FORWARD

ICON_FAST_FORWARD

ICON_FAST_FORWARD

ICON_STEP_FORWARD

ICON_STEP_FORWARD

ICON_EJECT

ICON_EJECT

ICON_CHEVRON_LEFT

ICON_CHEVRON_LEFT

ICON_CHEVRON_RIGHT

ICON_CHEVRON_RIGHT

ICON_PLUS_SIGN

ICON_PLUS_SIGN

ICON_MINUS_SIGN

ICON_MINUS_SIGN

ICON_REMOVE_SIGN

ICON_REMOVE_SIGN

ICON_OK_SIGN

ICON_OK_SIGN

ICON_QUESTION_SIGN

ICON_QUESTION_SIGN

ICON_INFO_SIGN

ICON_INFO_SIGN

ICON_SCREENSHOT

ICON_SCREENSHOT

ICON_REMOVE_CIRCLE

ICON_REMOVE_CIRCLE

ICON_OK_CIRCLE

ICON_OK_CIRCLE

ICON_BAN_CIRCLE

ICON_BAN_CIRCLE

ICON_ARROW_LEFT

ICON_ARROW_LEFT

ICON_ARROW_RIGHT

ICON_ARROW_RIGHT

ICON_ARROW_UP

ICON_ARROW_UP

ICON_ARROW_DOWN

ICON_ARROW_DOWN

ICON_SHARE_ALT

ICON_SHARE_ALT

ICON_RESIZE_FULL

ICON_RESIZE_FULL

ICON_RESIZE_SMALL

ICON_RESIZE_SMALL

ICON_PLUS

ICON_PLUS

ICON_MINUS

ICON_MINUS

ICON_ASTERISK

ICON_ASTERISK

ICON_EXCLAMATION_SIGN

ICON_EXCLAMATION_SIGN

ICON_GIFT

ICON_GIFT

ICON_LEAF

ICON_LEAF

ICON_FIRE

ICON_FIRE

ICON_EYE_OPEN

ICON_EYE_OPEN

ICON_EYE_CLOSE

ICON_EYE_CLOSE

ICON_WARNING_SIGN

ICON_WARNING_SIGN

ICON_PLANE

ICON_PLANE

ICON_CALENDAR

ICON_CALENDAR

ICON_RANDOM

ICON_RANDOM

ICON_COMMENT

ICON_COMMENT

ICON_MAGNET

ICON_MAGNET

ICON_CHEVRON_UP

ICON_CHEVRON_UP

ICON_CHEVRON_DOWN

ICON_CHEVRON_DOWN

ICON_RETWEET

ICON_RETWEET

ICON_SHOPPING_CART

ICON_SHOPPING_CART

ICON_FOLDER_CLOSE

ICON_FOLDER_CLOSE

ICON_FOLDER_OPEN

ICON_FOLDER_OPEN

ICON_RESIZE_VERTICAL

ICON_RESIZE_VERTICAL

ICON_RESIZE_HORIZONTAL

ICON_RESIZE_HORIZONTAL

ICON_HDD

ICON_HDD

ICON_BULLHORN

ICON_BULLHORN

ICON_BELL

ICON_BELL

ICON_CERTFICATE

ICON_CERTFICATE

ICON_THUMBS_UP

ICON_THUMBS_UP

ICON_THUMBS_DOWN

ICON_THUMBS_DOWN

ICON_HAND_RIGHT

ICON_HAND_RIGHT

ICON_HAND_LEFT

ICON_HAND_LEFT

ICON_HAND_UP

ICON_HAND_UP

ICON_HAND_DOWN

ICON_HAND_DOWN

ICON_CIRCLE_ARROW_RIGHT

ICON_CIRCLE_ARROW_RIGHT

ICON_CIRCLE_ARROW_LEFT

ICON_CIRCLE_ARROW_LEFT

ICON_CIRCLE_ARROW_UP

ICON_CIRCLE_ARROW_UP

ICON_CIRCLE_ARROW_DOWN

ICON_CIRCLE_ARROW_DOWN

ICON_GLOBE

ICON_GLOBE

ICON_WRENCH

ICON_WRENCH

ICON_TASKS

ICON_TASKS

ICON_FILTER

ICON_FILTER

ICON_BRIEFCASE

ICON_BRIEFCASE

ICON_FULLSCREEN

ICON_FULLSCREEN

CLOSE_TEXT

CLOSE_TEXT

Properties

$errorSummaryCss

$errorSummaryCss : string

Type

string — the CSS class for displaying error summaries.

Methods

lead()

lead(string $text, array $htmlOptions) : string

Generates a paragraph that stands out.

Parameters

string $text

the lead text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated paragraph.

small()

small(string $text, array $htmlOptions) : string

Generates small text.

Parameters

string $text

the text to style.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated text.

b()

b(string $text, array $htmlOptions) : string

Generates bold text.

Parameters

string $text

the text to style.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated text.

i()

i(string $text, array $htmlOptions) : string

Generates italic text.

Parameters

string $text

the text to style.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated text.

em()

em(string $text, array $htmlOptions, string $tag) : string

Generates an emphasized text.

Parameters

string $text

the text to emphasize.

array $htmlOptions

additional HTML attributes.

string $tag

the HTML tag.

Returns

string —

the generated text.

muted()

muted(string $text, array $htmlOptions, string $tag) : string

Generates a muted text block.

Parameters

string $text

the text.

array $htmlOptions

additional HTML attributes.

string $tag

the HTML tag.

Returns

string —

the generated text block.

mutedSpan()

mutedSpan(string $text, array $htmlOptions) : string

Generates a muted span.

Parameters

string $text

the text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated span.

abbr()

abbr(string $text, string $word, array $htmlOptions) : string

Generates an abbreviation with a help text.

Parameters

string $text

the abbreviation.

string $word

the word the abbreviation is for.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated abbreviation.

smallAbbr()

smallAbbr(string $text, string $word, array $htmlOptions) : string

Generates a small abbreviation with a help text.

Parameters

string $text

the abbreviation.

string $word

the word the abbreviation is for.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated abbreviation.

address()

address( $text, array $htmlOptions) : string

Generates an address block.

Parameters

$text
array $htmlOptions

additional HTML attributes.

Returns

string —

the generated block.

quote()

quote(string $text, array $htmlOptions) : string

Generates a quote.

Parameters

string $text

the quoted text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated quote.

help()

help(string $text, array $htmlOptions) : string

Generates a help text.

Parameters

string $text

the help text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated text.

helpBlock()

helpBlock(string $text, array $htmlOptions) : string

Generates a help block.

Parameters

string $text

the help text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated block.

code()

code(string $code, array $htmlOptions) : string

Generates inline code.

Parameters

string $code

the code.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated code.

codeBlock()

codeBlock(string $code, array $htmlOptions) : string

Generates a code block.

Parameters

string $code

the code.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated block.

tag()

tag(string $tag, array $htmlOptions, mixed $content, boolean $closeTag) : string

Generates an HTML element.

Parameters

string $tag

the tag name.

array $htmlOptions

the element attributes.

mixed $content

the content to be enclosed between open and close element tags.

boolean $closeTag

whether to generate the close tag.

Returns

string —

the generated HTML element tag.

openTag()

openTag(string $tag, array $htmlOptions) : string

Generates an open HTML element.

Parameters

string $tag

the tag name.

array $htmlOptions

the element attributes.

Returns

string —

the generated HTML element tag.

formTb()

formTb(string $layout, string $action, string $method, array $htmlOptions) : string

Generates a form tag.

Parameters

string $layout

the form layout.

string $action

the form action URL.

string $method

form method (e.g. post, get).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated tag.

beginFormTb()

beginFormTb(string $layout, string $action, string $method, array $htmlOptions) : string

Generates an open form tag.

Parameters

string $layout

the form layout.

string $action

the form action URL.

string $method

form method (e.g. post, get).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated tag.

statefulFormTb()

statefulFormTb( $layout, mixed $action, string $method, array $htmlOptions) : string

Generates a stateful form tag.

Parameters

$layout
mixed $action

the form action URL.

string $method

form method (e.g. post, get).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated form tag.

textField()

textField(string $name, string $value, array $htmlOptions) : string

Generates a text field input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

passwordField()

passwordField(string $name, string $value, array $htmlOptions) : string

Generates a password field input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

urlField()

urlField(string $name, string $value, array $htmlOptions) : string

Generates an url field input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

emailField()

emailField(string $name, string $value, array $htmlOptions) : string

Generates an email field input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

numberField()

numberField(string $name, string $value, array $htmlOptions) : string

Generates a number field input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

rangeField()

rangeField(string $name, string $value, array $htmlOptions) : string

Generates a range field input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

dateField()

dateField(string $name, string $value, array $htmlOptions) : string

Generates a date field input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

fileField()

fileField(string $name, string $value, array $htmlOptions) : string

Generates a file field input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

textArea()

textArea(string $name, string $value, array $htmlOptions) : string

Generates a text area input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated text area.

radioButton()

radioButton(string $name, boolean $checked, array $htmlOptions) : string

Generates a radio button.

Parameters

string $name

the input name.

boolean $checked

whether the radio button is checked.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated radio button.

checkBox()

checkBox(string $name, boolean $checked, array $htmlOptions) : string

Generates a check box.

Parameters

string $name

the input name.

boolean $checked

whether the check box is checked.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated check box.

dropDownList()

dropDownList(string $name, string $select, array $data,  $htmlOptions) : string

Generates a drop down list.

Parameters

string $name

the input name.

string $select

the selected value.

array $data

data for generating the list options (value=>display).

$htmlOptions

Returns

string —

the generated drop down list.

listBox()

listBox(string $name, mixed $select, array $data, array $htmlOptions) : string

Generates a list box.

Parameters

string $name

the input name.

mixed $select

the selected value(s).

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list box

radioButtonList()

radioButtonList(string $name, mixed $select, array $data, array $htmlOptions) : string

Generates a radio button list.

Parameters

string $name

name of the radio button list.

mixed $select

selection of the radio buttons.

array $data

$data value-label pairs used to generate the radio button list.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list.

inlineRadioButtonList()

inlineRadioButtonList(string $name, mixed $select, array $data, array $htmlOptions) : string

Generates an inline radio button list.

Parameters

string $name

name of the radio button list.

mixed $select

selection of the radio buttons.

array $data

$data value-label pairs used to generate the radio button list.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list.

checkBoxList()

checkBoxList(string $name, mixed $select, array $data, array $htmlOptions) : string

Generates a check box list.

Parameters

string $name

name of the check box list.

mixed $select

selection of the check boxes.

array $data

$data value-label pairs used to generate the check box list.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list.

inlineCheckBoxList()

inlineCheckBoxList(string $name, mixed $select, array $data, array $htmlOptions) : string

Generates an inline check box list.

Parameters

string $name

name of the check box list.

mixed $select

selection of the check boxes.

array $data

$data value-label pairs used to generate the check box list.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list.

uneditableField()

uneditableField(string $value, array $htmlOptions) : string

Generates an uneditable input.

Parameters

string $value

the value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input.

searchQueryField()

searchQueryField(string $name, string $value, array $htmlOptions) : string

Generates a search input.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input.

textFieldControlGroup()

textFieldControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with a text field.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

passwordFieldControlGroup()

passwordFieldControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with a password field.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

urlFieldControlGroup()

urlFieldControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with an url field.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

emailFieldControlGroup()

emailFieldControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with an email field.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

numberFieldControlGroup()

numberFieldControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with a number field.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

rangeFieldControlGroup()

rangeFieldControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with a range field.

Parameters

string $name

the input name

string $value

the input value

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

dateFieldControlGroup()

dateFieldControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with a file field.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

textAreaControlGroup()

textAreaControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with a text area.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

fileFieldControlGroup()

fileFieldControlGroup(string $name, string $value, array $htmlOptions) : string

Generates a control group with a file field.

Parameters

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

radioButtonControlGroup()

radioButtonControlGroup(string $name, string $checked, array $htmlOptions) : string

Generates a control group with a radio button.

Parameters

string $name

the input name.

string $checked

whether the radio button is checked.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

checkBoxControlGroup()

checkBoxControlGroup(string $name, string $checked, array $htmlOptions) : string

Generates a control group with a check box.

Parameters

string $name

the input name.

string $checked

whether the check box is checked.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

dropDownListControlGroup()

dropDownListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string

Generates a control group with a drop down list.

Parameters

string $name

the input name.

string $select

the selected value.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

listBoxControlGroup()

listBoxControlGroup(string $name, string $select, array $data, array $htmlOptions) : string

Generates a control group with a list box.

Parameters

string $name

the input name.

string $select

the selected value.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

radioButtonListControlGroup()

radioButtonListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string

Generates a control group with a radio button list.

Parameters

string $name

the input name.

string $select

the selected value.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

inlineRadioButtonListControlGroup()

inlineRadioButtonListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string

Generates a control group with an inline radio button list.

Parameters

string $name

the input name.

string $select

the selected value.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

checkBoxListControlGroup()

checkBoxListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string

Generates a control group with a check box list.

Parameters

string $name

the input name.

string $select

the selected value.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

inlineCheckBoxListControlGroup()

inlineCheckBoxListControlGroup(string $name, string $select, array $data, array $htmlOptions) : string

Generates a control group with an inline check box list.

Parameters

string $name

the input name.

string $select

the selected value.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

uneditableFieldControlGroup()

uneditableFieldControlGroup( $value, array $htmlOptions) : string

Generates a control group with an uneditable field.

Parameters

$value
array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

searchQueryControlGroup()

searchQueryControlGroup(string $name,  $value, array $htmlOptions) : string

Generates a control group with a search field.

Parameters

string $name

the input name.

$value
array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

controlGroup()

controlGroup(string $type, string $name, string $value, array $htmlOptions, array $data) : string

Generates a form control group.

Parameters

string $type

the input type.

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

array $data

data for multiple select inputs.

Returns

string —

the generated control group.

customControlGroup()

customControlGroup(string $input, string $name, array $htmlOptions) : string

Generates a custom (pre-rendered) form control group.

Parameters

string $input

the rendered input.

string $name

the input name.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

createInput()

createInput(string $type, string $name, string $value, array $htmlOptions, array $data) : string

Creates a form input of the given type.

Parameters

string $type

the input type.

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

array $data

data for multiple select inputs.

Throws

\CException

if the input type is invalid.

Returns

string —

the input.

activeTextField()

activeTextField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a text field input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

activePasswordField()

activePasswordField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a password field input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

activeUrlField()

activeUrlField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates an url field input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

activeEmailField()

activeEmailField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates an email field input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

activeNumberField()

activeNumberField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a number field input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

activeRangeField()

activeRangeField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a range field input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

activeDateField()

activeDateField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a date field input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

activeFileField()

activeFileField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a file field input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input field.

activeTextArea()

activeTextArea(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a text area input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated text area.

activeRadioButton()

activeRadioButton(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a radio button for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated radio button.

activeCheckBox()

activeCheckBox(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a check box for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated check box.

activeDropDownList()

activeDropDownList(\CModel $model, string $attribute, array $data,  $htmlOptions) : string

Generates a drop down list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

data for generating the list options (value=>display).

$htmlOptions

Returns

string —

the generated drop down list.

activeListBox()

activeListBox(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates a list box for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list box

activeRadioButtonList()

activeRadioButtonList(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates a radio button list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

$data value-label pairs used to generate the radio button list.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list.

activeInlineRadioButtonList()

activeInlineRadioButtonList(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates an inline radio button list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

$data value-label pairs used to generate the radio button list.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list.

activeCheckBoxList()

activeCheckBoxList(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates a check box list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

$data value-label pairs used to generate the check box list.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list.

activeInlineCheckBoxList()

activeInlineCheckBoxList(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates an inline check box list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

$data value-label pairs used to generate the check box list.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated list.

activeUneditableField()

activeUneditableField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates an uneditable input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input.

activeSearchQueryField()

activeSearchQueryField(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a search query input for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input.

activeTextFieldControlGroup()

activeTextFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a text field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activePasswordFieldControlGroup()

activePasswordFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a password field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeUrlFieldControlGroup()

activeUrlFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a url field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeEmailFieldControlGroup()

activeEmailFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a email field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeNumberFieldControlGroup()

activeNumberFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a number field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeRangeFieldControlGroup()

activeRangeFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a range field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeDateFieldControlGroup()

activeDateFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a date field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeTextAreaControlGroup()

activeTextAreaControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a text area for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeFileFieldControlGroup()

activeFileFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a file field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeRadioButtonControlGroup()

activeRadioButtonControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a radio button for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeCheckBoxControlGroup()

activeCheckBoxControlGroup( $model,  $attribute, array $htmlOptions) : string

Generates a control group with a check box for a model attribute.

Parameters

$model
$attribute
array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeDropDownListControlGroup()

activeDropDownListControlGroup(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates a control group with a drop down list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeListBoxControlGroup()

activeListBoxControlGroup( $model,  $attribute, array $data, array $htmlOptions) : string

Generates a control group with a list box for a model attribute.

Parameters

$model
$attribute
array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeRadioButtonListControlGroup()

activeRadioButtonListControlGroup(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates a control group with a radio button list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeInlineRadioButtonListControlGroup()

activeInlineRadioButtonListControlGroup( $model,  $attribute, array $data, array $htmlOptions) : string

Generates a control group with an inline radio button list for a model attribute.

Parameters

$model
$attribute
array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeCheckBoxListControlGroup()

activeCheckBoxListControlGroup(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates a control group with a check box list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeInlineCheckBoxListControlGroup()

activeInlineCheckBoxListControlGroup(\CModel $model, string $attribute, array $data, array $htmlOptions) : string

Generates a control group with an inline check box list for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $data

data for generating the list options (value=>display).

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeUneditableFieldControlGroup()

activeUneditableFieldControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a uneditable field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeSearchQueryControlGroup()

activeSearchQueryControlGroup(\CModel $model, string $attribute, array $htmlOptions) : string

Generates a control group with a search field for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

activeControlGroup()

activeControlGroup(string $type, \CModel $model, string $attribute, array $htmlOptions, array $data) : string

Generates an active form row.

Parameters

string $type

the input type.

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

array $data

data for multiple select inputs.

Returns

string —

the generated control group.

customActiveControlGroup()

customActiveControlGroup(string $input, \CModel $model, string $attribute, array $htmlOptions) : string

Generates a custom (pre-rendered) active form control group.

Parameters

string $input

the rendered input.

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated control group.

createActiveInput()

createActiveInput(string $type, \CModel $model, string $attribute, array $htmlOptions, array $data) : string

Creates an active form input of the given type.

Parameters

string $type

the input type.

\CModel $model

the model instance.

string $attribute

the attribute name.

array $htmlOptions

additional HTML attributes.

array $data

data for multiple select inputs.

Throws

\CException

if the input type is invalid.

Returns

string —

the input.

errorSummary()

errorSummary(mixed $model, string $header, string $footer, array $htmlOptions) : string

Displays a summary of validation errors for one or several models.

Parameters

mixed $model

the models whose input errors are to be displayed.

string $header

a piece of HTML code that appears in front of the errors.

string $footer

a piece of HTML code that appears at the end of the errors.

array $htmlOptions

additional HTML attributes to be rendered in the container div tag.

Returns

string —

the error summary. Empty if no errors are found.

error()

error(\CModel $model, string $attribute, array $htmlOptions) : string

Displays the first validation error for a model attribute.

Parameters

\CModel $model

the data model.

string $attribute

the attribute name.

array $htmlOptions

additional HTML attributes.

Returns

string —

the rendered error. Empty if no errors are found.

controls()

controls(mixed $controls, array $htmlOptions) : string

Generates form controls.

Parameters

mixed $controls

the controls.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated controls.

controlsRow()

controlsRow(mixed $controls, array $htmlOptions) : string

Generates form controls row.

Parameters

mixed $controls

the controls.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated controls.

formActions()

formActions(mixed $actions, array $htmlOptions) : string

Generates form actions.

Parameters

mixed $actions

the actions.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated actions.

searchForm()

searchForm(mixed $action, string $method, array $htmlOptions) : string

Generates a search form.

Parameters

mixed $action

the form action URL.

string $method

form method (e.g. post, get).

array $htmlOptions

additional HTML options.

Returns

string —

the generated form.

link()

link(string $text, mixed $url, array $htmlOptions) : string

Generates a hyperlink tag.

Parameters

string $text

link body. It will NOT be HTML-encoded.

mixed $url

a URL or an action route that can be used to create a URL.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated hyperlink

button()

button(string $label, array $htmlOptions) : string

Generates an button.

Parameters

string $label

the button label text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

htmlButton()

htmlButton( $label, array $htmlOptions) : string

Generates an image submit button.

Parameters

$label
array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

submitButton()

submitButton(string $label, array $htmlOptions) : string

Generates a submit button.

Parameters

string $label

the button label

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

resetButton()

resetButton(string $label, array $htmlOptions) : string

Generates a reset button.

Parameters

string $label

the button label

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

imageButton()

imageButton(string $src, array $htmlOptions) : string

Generates an image submit button.

Parameters

string $src

the image URL

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

linkButton()

linkButton(string $label, array $htmlOptions) : string

Generates a link submit button.

Parameters

string $label

the button label.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button tag.

ajaxLink()

ajaxLink(string $text, mixed $url, array $ajaxOptions, array $htmlOptions) : string

Generates a link that can initiate AJAX requests.

Parameters

string $text

the link body (it will NOT be HTML-encoded.)

mixed $url

the URL for the AJAX request.

array $ajaxOptions

AJAX options.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

ajaxButton()

ajaxButton(string $label, mixed $url, array $ajaxOptions, array $htmlOptions) : string

Generates a push button that can initiate AJAX requests.

Parameters

string $label

the button label.

mixed $url

the URL for the AJAX request.

array $ajaxOptions

AJAX options.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

ajaxSubmitButton()

ajaxSubmitButton(string $label, mixed $url, array $ajaxOptions, array $htmlOptions) : string

Generates a push button that can submit the current form in POST method.

Parameters

string $label

the button label

mixed $url

the URL for the AJAX request.

array $ajaxOptions

AJAX options.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

btn()

btn(string $type, string $label, array $htmlOptions) : string

Generates a button.

Parameters

string $type

the button type.

string $label

the button label text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

imageRounded()

imageRounded(string $src, string $alt, array $htmlOptions) : string

Generates an image tag with rounded corners.

Parameters

string $src

the image URL.

string $alt

the alternative text display.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated image tag.

imageCircle()

imageCircle(string $src, string $alt, array $htmlOptions) : string

Generates an image tag with circle.

Parameters

string $src

the image URL.

string $alt

the alternative text display.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated image tag.

imagePolaroid()

imagePolaroid(string $src, string $alt, array $htmlOptions) : string

Generates an image tag within polaroid frame.

Parameters

string $src

the image URL.

string $alt

the alternative text display.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated image tag.

image()

image(string $src, string $alt, array $htmlOptions) : string

Generates an image tag.

Parameters

string $src

the image URL.

string $alt

the alternative text display.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated image tag.

icon()

icon(string $icon, array $htmlOptions, string $tagName) : string

Generates an icon.

Parameters

string $icon

the icon type.

array $htmlOptions

additional HTML attributes.

string $tagName

the icon HTML tag.

Returns

string —

the generated icon.

dropdownToggleLink()

dropdownToggleLink(string $label, array $htmlOptions) : string

Generates a dropdown toggle link.

Parameters

string $label

the link label text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

dropdownToggleButton()

dropdownToggleButton(string $label, array $htmlOptions) : string

Generates a dropdown toggle button.

Parameters

string $label

the button label text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

dropdownToggleMenuLink()

dropdownToggleMenuLink(string $label, string $url, array $htmlOptions, int $depth) : string

Generates a dropdown toggle menu item.

Parameters

string $label

the menu item text.

string $url

the menu item URL.

array $htmlOptions

additional HTML attributes.

int $depth

the menu depth at which this link is located

Returns

string —

the generated menu item.

buttonGroup()

buttonGroup(array $buttons, array $htmlOptions) : string

Generates a button group.

Parameters

array $buttons

the button configurations.

array $htmlOptions

additional HTML options.

Returns

string —

the generated button group.

verticalButtonGroup()

verticalButtonGroup(array $buttons, array $htmlOptions) : string

Generates a vertical button group.

Parameters

array $buttons

the button configurations.

array $htmlOptions

additional HTML options.

Returns

string —

the generated button group.

buttonToolbar()

buttonToolbar(array $groups, array $htmlOptions) : string

Generates a button toolbar.

Parameters

array $groups

the button group configurations.

array $htmlOptions

additional HTML options.

Returns

string —

the generated button toolbar.

buttonDropdown()

buttonDropdown(string $label, array $items, array $htmlOptions) : string

Generates a button with a dropdown menu.

Parameters

string $label

the button label text.

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

splitButtonDropdown()

splitButtonDropdown(string $label, array $items, array $htmlOptions) : string

Generates a button with a split dropdown menu.

Parameters

string $label

the button label text.

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

tabs()

tabs(array $items, array $htmlOptions) : string

Generates a tab navigation.

Parameters

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

stackedTabs()

stackedTabs(array $items, array $htmlOptions) : string

Generates a stacked tab navigation.

Parameters

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

pills()

pills(array $items, array $htmlOptions) : string

Generates a pills navigation.

Parameters

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

stackedPills()

stackedPills(array $items, array $htmlOptions) : string

Generates a stacked pills navigation.

Parameters

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

navList()

navList(array $items, array $htmlOptions) : string

Generates a list navigation.

Parameters

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

nav()

nav(string $type, array $items, array $htmlOptions) : string

Generates a navigation menu.

Parameters

string $type

the menu type.

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

menu()

menu(array $items, array $htmlOptions, integer $depth) : string

Generates a menu.

Parameters

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

integer $depth

the current depth.

Returns

string —

the generated menu.

menuLink()

menuLink(string $label, array $url, array $htmlOptions) : string

Generates a menu link.

Parameters

string $label

the link label.

array $url

the link url.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu item.

menuHeader()

menuHeader(string $label, array $htmlOptions) : string

Generates a menu header.

Parameters

string $label

the header text.

array $htmlOptions

additional HTML options.

Returns

string —

the generated header.

menuDivider()

menuDivider(array $htmlOptions) : string

Generates a menu divider.

Parameters

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu item.

tabbableTabs()

tabbableTabs(array $tabs, array $htmlOptions) : string

Generates a tabbable tabs menu.

Parameters

array $tabs

the tab configurations.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

tabbablePills()

tabbablePills( $pills, array $htmlOptions) : string

Generates a tabbable pills menu.

Parameters

$pills
array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

tabbable()

tabbable(string $type, array $tabs, array $htmlOptions) : string

Generates a tabbable menu.

Parameters

string $type

the menu type.

array $tabs

the tab configurations.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

navbar()

navbar(string $content, array $htmlOptions) : string

Generates a navbar.

Parameters

string $content

the navbar content.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated navbar.

navbarBrandLink()

navbarBrandLink(string $label, string $url, array $htmlOptions) : string

Generates a brand link for the navbar.

Parameters

string $label

the link label text.

string $url

the link url.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

navbarText()

navbarText(string $text, array $htmlOptions, string $tag) : string

Generates a text for the navbar.

Parameters

string $text

the text.

array $htmlOptions

additional HTML attributes.

string $tag

the HTML tag.

Returns

string —

the generated text block.

navbarMenuDivider()

navbarMenuDivider(array $htmlOptions) : string

Generates a menu divider for the navbar.

Parameters

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated divider.

navbarForm()

navbarForm(mixed $action, string $method, array $htmlOptions) : string

Generates a navbar form.

Parameters

mixed $action

the form action URL.

string $method

form method (e.g. post, get).

array $htmlOptions

additional HTML attributes

Returns

string —

the generated form.

navbarSearchForm()

navbarSearchForm(mixed $action, string $method, array $htmlOptions) : string

Generates a navbar search form.

Parameters

mixed $action

the form action URL.

string $method

form method (e.g. post, get).

array $htmlOptions

additional HTML attributes

Returns

string —

the generated form.

navbarCollapseLink()

navbarCollapseLink(string $target, array $htmlOptions) : string

Generates a collapse element.

Parameters

string $target

the CSS selector for the target element.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated icon.

breadcrumbs()

breadcrumbs(array $links, array $htmlOptions) : string

Generates a breadcrumb menu.

Parameters

array $links

the breadcrumb links.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated breadcrumb.

pagination()

pagination(array $items, array $htmlOptions) : string

Generates a pagination.

Parameters

array $items

the pagination buttons.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated pagination.

paginationLink()

paginationLink(string $label, mixed $url, array $htmlOptions) : string

Generates a pagination link.

Parameters

string $label

the link label text.

mixed $url

the link url.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

pager()

pager(array $links, array $htmlOptions) : string

Generates a pager.

Parameters

array $links

the pager buttons.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated pager.

pagerLink()

pagerLink(string $label, mixed $url, array $htmlOptions) : string

Generates a pager link.

Parameters

string $label

the link label text.

mixed $url

the link url.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

labelTb()

labelTb(string $label, array $htmlOptions) : string

Generates a label span.

Parameters

string $label

the label text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated span.

badge()

badge(string $label, array $htmlOptions) : string

Generates a badge span.

Parameters

string $label

the badge text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated span.

heroUnit()

heroUnit(string $heading, string $content, array $htmlOptions) : string

Generates a hero unit.

Parameters

string $heading

the heading text.

string $content

the content text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated hero unit.

pageHeader()

pageHeader(string $heading, string $subtext, array $htmlOptions) : string

Generates a pager header.

Parameters

string $heading

the heading text.

string $subtext

the subtext.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated pager header.

thumbnails()

thumbnails(array $thumbnails, array $htmlOptions) : string

Generates a list of thumbnails.

Parameters

array $thumbnails

the list configuration.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated thumbnails.

thumbnail()

thumbnail(string $content, array $htmlOptions) : string

Generates a thumbnail.

Parameters

string $content

the thumbnail content.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated thumbnail.

thumbnailLink()

thumbnailLink(string $content, mixed $url, array $htmlOptions) : string

Generates a link thumbnail.

Parameters

string $content

the thumbnail content.

mixed $url

the url that the thumbnail links to.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated thumbnail.

alert()

alert(string $color, string $message, array $htmlOptions) : string

Generates an alert.

Parameters

string $color

the color of the alert.

string $message

the message to display.

array $htmlOptions

additional HTML options.

Returns

string —

the generated alert.

blockAlert()

blockAlert(string $color, string $message, array $htmlOptions) : string

Generates an alert block.

Parameters

string $color

the color of the alert.

string $message

the message to display.

array $htmlOptions

additional HTML options.

Returns

string —

the generated alert.

progressBar()

progressBar(integer $width, array $htmlOptions) : string

Generates a progress bar.

Parameters

integer $width

the progress in percent.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated progress bar.

stripedProgressBar()

stripedProgressBar(integer $width, array $htmlOptions) : string

Generates a striped progress bar.

Parameters

integer $width

the progress in percent.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated progress bar.

animatedProgressBar()

animatedProgressBar(integer $width, array $htmlOptions) : string

Generates an animated progress bar.

Parameters

integer $width

the progress in percent.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated progress bar.

stackedProgressBar()

stackedProgressBar(array $bars, array $htmlOptions) : string

Generates a stacked progress bar.

Parameters

array $bars

the bar configurations.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated progress bar.

mediaList()

mediaList(array $items, array $htmlOptions) : string

Generates a list of media objects.

Parameters

array $items

item configurations.

array $htmlOptions

additional HTML attributes.

Returns

string —

generated list.

medias()

medias(array $items, string $tag) : string

Generates multiple media objects.

Parameters

array $items

item configurations.

string $tag

the item tag name.

Returns

string —

generated objects.

media()

media(string $image, string $heading, string $content, array $htmlOptions) : string

Generates a single media object.

Parameters

string $image

the image url.

string $heading

the heading text.

string $content

the content text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the media object.

well()

well(string $content, array $htmlOptions) : string

Generates a well element.

Parameters

string $content

the well content.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated well.

closeLink()

closeLink(string $label, mixed $url, array $htmlOptions) : string

Generates a close link.

Parameters

string $label

the link label text.

mixed $url

the link url.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

closeButton()

closeButton(string $label, array $htmlOptions) : string

Generates a close button.

Parameters

string $label

the button label text.

array $htmlOptions

the HTML options for the button.

Returns

string —

the generated button.

collapseLink()

collapseLink(string $label, string $target, array $htmlOptions) : string

Generates a collapse link.

Parameters

string $label

the link label.

string $target

the CSS selector.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

modalHeader()

modalHeader(string $content, array $htmlOptions) : string

Generates a modal header.

Parameters

string $content

the header content.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated header.

modalBody()

modalBody(string $content, array $htmlOptions) : string

Generates a modal body.

Parameters

string $content

the body content.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated body.

modalFooter()

modalFooter(string $content, array $htmlOptions) : string

Generates a modal footer.

Parameters

string $content

the footer content.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated footer.

tooltip()

tooltip(string $label, mixed $url, string $content, array $htmlOptions) : string

Generates a tooltip.

Parameters

string $label

the tooltip link label text.

mixed $url

the link url.

string $content

the tooltip content text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated tooltip.

popover()

popover(string $label, string $title, string $content, array $htmlOptions) : string

Generates a popover.

Parameters

string $label

the popover link label text.

string $title

the popover title text.

string $content

the popover content text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated popover.

carousel()

carousel(array $items, array $htmlOptions) : string

Generates an image carousel.

Parameters

array $items

the item configurations.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated carousel.

carouselItem()

carouselItem(string $content, string $label, string $caption, array $htmlOptions) : string

Generates a carousel item.

Parameters

string $content

the content.

string $label

the item label text.

string $caption

the item caption text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated item.

carouselPrevLink()

carouselPrevLink(string $label, mixed $url, array $htmlOptions) : string

Generates a previous link for the carousel.

Parameters

string $label

the link label text.

mixed $url

the link url.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

carouselNextLink()

carouselNextLink(string $label, mixed $url, array $htmlOptions) : string

Generates a next link for the carousel.

Parameters

string $label

the link label text.

mixed $url

the link url.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated link.

carouselIndicators()

carouselIndicators(string $target, integer $numSlides, array $htmlOptions) : string

Generates an indicator for the carousel.

Parameters

string $target

the CSS selector for the target element.

integer $numSlides

the number of slides.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated indicators.

addCssClass()

addCssClass(mixed $className, array $htmlOptions) : array

Appends new class names to the given options.

.

Parameters

mixed $className

the class(es) to append.

array $htmlOptions

the options.

Returns

array —

the options.

addCssStyle()

addCssStyle(string $style, array $htmlOptions) : array

Appends a CSS style string to the given options.

Parameters

string $style

the CSS style string.

array $htmlOptions

the options.

Returns

array —

the options.

textInputField()

textInputField(string $type, string $name, string $value, array $htmlOptions) : string

Generates an input HTML tag.

This method generates an input HTML tag based on the given input name and value.

Parameters

string $type

the input type.

string $name

the input name.

string $value

the input value.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input tag.

createCheckBoxAndRadioButtonLabel()

createCheckBoxAndRadioButtonLabel(string $label, string $input, array $htmlOptions) : string

Generates a label for a checkbox or radio input by wrapping the input.

Parameters

string $label

the label text.

string $input

the input.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated label.

normalizeCheckBoxAndRadio()

normalizeCheckBoxAndRadio(string $input) : array

Normalizes the inputs in the given string by splitting them up into an array.

Parameters

string $input

the inputs.

Returns

array —

an array with the following structure: array($hidden, $input)

activeTextInputField()

activeTextInputField(string $type, \CModel $model, string $attribute, array $htmlOptions) : string

Generates an input HTML tag for a model attribute.

This method generates an input HTML tag based on the given input name and value.

Parameters

string $type

the input type.

\CModel $model

the data model.

string $attribute

the attribute.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated input tag.

getAddOnClasses()

getAddOnClasses(array $htmlOptions) : string

Returns the add-on classes based on the given options.

Parameters

array $htmlOptions

the options.

Returns

string —

the classes.

inputAddOn()

inputAddOn(string $addOn, array $htmlOptions) : string

Generates an add-on for an input field.

Parameters

string $addOn

the add-on.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated add-on.

inputHelp()

inputHelp(string $help, array $htmlOptions) : string

Generates a help text for an input field.

Parameters

string $help

the help text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated help text.

normalizeInputOptions()

normalizeInputOptions(array $options) : array

Normalizes input options.

Parameters

array $options

the options.

Returns

array —

the normalized options.

btnDropdown()

btnDropdown(string $type, string $label, array $items, array $htmlOptions) : string

Generates a button dropdown.

Parameters

string $type

the button type.

string $label

the button label text.

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated button.

createButton()

createButton(string $type, string $label, array $htmlOptions) : string

Creates a button the of given type.

Parameters

string $type

the button type.

string $label

the button label.

array $htmlOptions

additional HTML attributes.

Throws

\CException

if the button type is valid.

Returns

string —

the button.

dropdown()

dropdown(array $items, array $htmlOptions) : string

Generates a dropdown menu.

Parameters

array $items

the menu items.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated menu.

dropdownToggle()

dropdownToggle( $type, string $label, array $htmlOptions) : string

Generates a dropdown toggle element.

Parameters

$type
string $label

the element text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated element.

menuDropdown()

menuDropdown(string $label, string $url, array $items, array $htmlOptions, integer $depth) : string

Generates a menu dropdown.

Parameters

string $label

the link label.

string $url

the link URL.

array $items

the menu configuration.

array $htmlOptions

additional HTML attributes.

integer $depth

the current depth.

Returns

string —

the generated dropdown.

normalizeTabs()

normalizeTabs(array $tabs, array $panes, integer $i) : array

Normalizes the tab configuration.

Parameters

array $tabs

the tab configuration.

array $panes

a reference to the panes array.

integer $i

the running index.

Returns

array —

the items.

bar()

bar(integer $width, array $htmlOptions) : string

Generates a progress bar.

Parameters

integer $width

the progress in percent.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated bar.

close()

close(string $tag, string $label, array $htmlOptions) : string

Generates a close element.

Parameters

string $tag

the tag name.

string $label

the element label text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated element.

tooltipPopover()

tooltipPopover(string $label, mixed $url, string $title, array $htmlOptions) : string

Generates a base tooltip.

Parameters

string $label

the tooltip link label text.

mixed $url

the link url.

string $title

the tooltip title text.

array $htmlOptions

additional HTML attributes.

Returns

string —

the generated tooltip.

addSpanClass()

addSpanClass(array $htmlOptions)

Adds the grid span class to the given options is applicable.

Parameters

array $htmlOptions

the HTML attributes.

addPullClass()

addPullClass(array $htmlOptions)

Adds the pull class to the given options is applicable.

Parameters

array $htmlOptions

the HTML attributes.

addTextAlignClass()

addTextAlignClass(array $htmlOptions)

Adds the text align class to the given options if applicable.

Parameters

array $htmlOptions

the HTML attributes.