Trait kartik\base\BootstrapTrait

Implemented bykartik\affix\AffixAsset, kartik\alert\Alert, kartik\alert\AlertAsset, kartik\alert\AlertBlock, kartik\base\AnimateAsset, kartik\base\AssetBundle, kartik\base\Html5Input, kartik\base\Html5InputAsset, kartik\base\InputWidget, kartik\base\Module, kartik\base\PluginAssetBundle, kartik\base\Widget, kartik\base\WidgetAsset, kartik\bs4dropdown\Dropdown, kartik\bs4dropdown\DropdownAsset, kartik\bs5dropdown\DropdownAsset, kartik\builder\BaseForm, kartik\builder\Form, kartik\builder\FormAsset, kartik\builder\FormGrid, kartik\builder\TabularForm, kartik\builder\TabularFormAsset, kartik\checkbox\CheckboxX, kartik\checkbox\CheckboxXAsset, kartik\checkbox\KrajeeFlatBlueThemeAsset, kartik\cmenu\ContextMenu, kartik\cmenu\ContextMenuAsset, kartik\color\ColorInput, kartik\color\ColorInputAsset, kartik\date\DatePicker, kartik\date\DatePickerAsset, kartik\datecontrol\DateControl, kartik\datecontrol\DateControlAsset, kartik\datecontrol\DateFormatterAsset, kartik\daterange\DateRangePicker, kartik\daterange\DateRangePickerAsset, kartik\daterange\LanguageAsset, kartik\daterange\MomentAsset, kartik\datetime\DateTimePicker, kartik\datetime\DateTimePickerAsset, kartik\depdrop\DepDrop, kartik\depdrop\DepDropAsset, kartik\depdrop\DepDropExtAsset, kartik\detail\DetailView, kartik\detail\DetailViewAsset, kartik\dialog\Dialog, kartik\dialog\DialogAsset, kartik\dialog\DialogBootstrapAsset, kartik\dialog\DialogYiiAsset, kartik\dropdown\DropdownXAsset, kartik\dynagrid\DynaGrid, kartik\dynagrid\DynaGridAsset, kartik\dynagrid\DynaGridDetail, kartik\dynagrid\DynaGridDetailAsset, kartik\dynagrid\Module, kartik\editable\Editable, kartik\editable\EditableAsset, kartik\editable\EditablePjaxAsset, kartik\editors\Codemirror, kartik\editors\Summernote, kartik\editors\assets\BaseAsset, kartik\editors\assets\CodemirrorAsset, kartik\editors\assets\CodemirrorFormatterAsset, kartik\editors\assets\KrajeeCodemirrorAsset, kartik\editors\assets\KrajeeSummernoteAsset, kartik\editors\assets\KrajeeSummernoteStyleAsset, kartik\editors\assets\SummernoteAsset, kartik\editors\assets\SummernoteBs5Asset, kartik\export\ExportColumnAsset, kartik\export\ExportMenu, kartik\export\ExportMenuAsset, kartik\field\FieldRange, kartik\field\FieldRangeAsset, kartik\file\BaseAsset, kartik\file\FileInput, kartik\file\FileInputAsset, kartik\file\FileInputThemeAsset, kartik\file\PiExifAsset, kartik\file\SortableAsset, kartik\form\ActiveForm, kartik\form\ActiveFormAsset, kartik\form\Bs4CustomFileInputAsset, kartik\grid\ActionColumnAsset, kartik\grid\CheckboxColumnAsset, kartik\grid\EditableColumnAsset, kartik\grid\ExpandRowColumnAsset, kartik\grid\GridEditedRowAsset, kartik\grid\GridExportAsset, kartik\grid\GridGroupAsset, kartik\grid\GridPerfectScrollbarAsset, kartik\grid\GridResizeColumnsAsset, kartik\grid\GridResizeStoreAsset, kartik\grid\GridToggleDataAsset, kartik\grid\GridView, kartik\grid\GridViewAsset, kartik\grid\Module, kartik\grid\RadioColumnAsset, kartik\growl\Growl, kartik\growl\GrowlAsset, kartik\icons\SociconAsset, kartik\ipinfo\IpInfo, kartik\ipinfo\IpInfoAsset, kartik\label\LabelInPlace, kartik\label\LabelInPlaceAsset, kartik\markdown\MarkdownEditor, kartik\markdown\MarkdownEditorAsset, kartik\markdown\Module, kartik\money\MaskMoney, kartik\money\MaskMoneyAsset, kartik\nav\NavX, kartik\number\NumberControl, kartik\number\NumberControlAsset, kartik\password\PasswordInput, kartik\password\PasswordInputAsset, kartik\password\StrengthValidatorAsset, kartik\popover\PopoverX, kartik\popover\PopoverXAsset, kartik\range\RangeInput, kartik\rating\StarRating, kartik\rating\StarRatingAsset, kartik\rating\StarRatingThemeAsset, kartik\select2\Select2, kartik\select2\Select2Asset, kartik\select2\Select2KrajeeAsset, kartik\select2\ThemeAsset, kartik\select2\ThemeBootstrapAsset, kartik\select2\ThemeClassicAsset, kartik\select2\ThemeDefaultAsset, kartik\select2\ThemeKrajeeBs3Asset, kartik\select2\ThemeKrajeeBs4Asset, kartik\select2\ThemeKrajeeBs5Asset, kartik\select2\ThemeMaterialAsset, kartik\sidenav\SideNav, kartik\sidenav\SideNavAsset, kartik\slider\Slider, kartik\slider\SliderAsset, kartik\social\Module, kartik\sortable\Sortable, kartik\sortable\SortableAsset, kartik\sortinput\SortableInput, kartik\sortinput\SortableInputAsset, kartik\spinner\Spinner, kartik\spinner\SpinnerAsset, kartik\switchinput\SwitchInput, kartik\switchinput\SwitchInputAsset, kartik\tabs\StickyTabsAsset, kartik\tabs\TabsX, kartik\tabs\TabsXAsset, kartik\time\TimePicker, kartik\time\TimePickerAsset, kartik\touchspin\TouchSpin, kartik\touchspin\TouchSpinAsset, kartik\tree\Module, kartik\tree\TreeView, kartik\tree\TreeViewAsset, kartik\tree\TreeViewInput, kartik\tree\TreeViewInputAsset, kartik\typeahead\Typeahead, kartik\typeahead\TypeaheadAsset, kartik\typeahead\TypeaheadBasic, kartik\typeahead\TypeaheadBasicAsset, kartik\typeahead\TypeaheadHBAsset, kartik\validators\CardValidatorAsset, kartik\validators\EmailValidatorAsset, kartik\validators\JsonValidatorAsset, kartik\widgets\ActiveForm, kartik\widgets\Alert, kartik\widgets\AlertBlock, kartik\widgets\AssetBundle, kartik\widgets\ColorInput, kartik\widgets\DatePicker, kartik\widgets\DateTimePicker, kartik\widgets\DepDrop, kartik\widgets\FileInput, kartik\widgets\Growl, kartik\widgets\InputWidget, kartik\widgets\RangeInput, kartik\widgets\Select2, kartik\widgets\SideNav, kartik\widgets\Spinner, kartik\widgets\StarRating, kartik\widgets\SwitchInput, kartik\widgets\TimePicker, kartik\widgets\TouchSpin, kartik\widgets\Typeahead, kartik\widgets\TypeaheadBasic, kartik\widgets\Widget, kartik\widgets\WidgetAsset

BootstrapTrait includes bootstrap library init and parsing methods. The class which uses this trait, must also necessarily implement the kartik\base\BootstrapInterface.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$bsColCssPrefixes array The bootstrap grid column css prefixes mapping, the key is the bootstrap versions, and the value is an array containing the sizes and their corresponding grid column css prefixes. kartik\base\BootstrapTrait
$bsCssMap array CSS conversion mappings across bootstrap library versions. kartik\base\BootstrapTrait
$bsExtBasename integer The yii2 bootstrap extension base name (readonly property available via getter method getBsExtBasename()) kartik\base\BootstrapTrait
$bsVer integer Bootstrap version number currently set (readonly property available via getter method getBsVer()) kartik\base\BootstrapTrait
$bsVersion integer|string The bootstrap library version that you wish to use for this specific extension / widget. kartik\base\BootstrapTrait
$defaultBtnCss string Default bootstrap button CSS (readonly property available via getter method getDefaultBtnCss()) kartik\base\BootstrapTrait
$defaultIconPrefix string Default icon prefix (readonly property available via getter method getDefaultIconPrefix()) kartik\base\BootstrapTrait
$dropdownClass string Bootstrap dropdown class name based on currently configured bootstrap version (readonly property available via getter method getDropdownClass()) kartik\base\BootstrapTrait

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_bsVer integer Current bootstrap version number kartik\base\BootstrapTrait
$_defaultBtnCss string Default bootstrap button CSS kartik\base\BootstrapTrait
$_defaultIconPrefix string Default icon CSS prefix kartik\base\BootstrapTrait
$_isBs4 boolean Flag to detect whether bootstrap 4. kartik\base\BootstrapTrait

Public Methods

Hide inherited methods

MethodDescriptionDefined By
addCssClass() Adds bootstrap CSS class to options by parsing the bootstrap version for the specified Bootstrap CSS type. kartik\base\BootstrapTrait
getBSClass() Gets the respective Bootstrap class based on currently configured bootstrap version. kartik\base\BootstrapTrait
getBsVer() Gets the current set bootstrap version number. kartik\base\BootstrapTrait
getCssClass() Gets bootstrap css class by parsing the bootstrap version for the specified BS CSS type. kartik\base\BootstrapTrait
getDefaultBtnCss() Gets the default button CSS kartik\base\BootstrapTrait
getDefaultIconPrefix() Gets the default icon css prefix kartik\base\BootstrapTrait
getDropdownClass() Gets the respective bootstrap dropdown class name based on currently configured bootstrap version. kartik\base\BootstrapTrait
isBs() Validate Bootstrap version kartik\base\BootstrapTrait
isBs4() Validate if Bootstrap 4.x version. kartik\base\BootstrapTrait
removeCssClass() Removes bootstrap CSS class from options by parsing the bootstrap version for the specified Bootstrap CSS type. kartik\base\BootstrapTrait

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
configureBsVersion() Configures the bootstrap version settings kartik\base\BootstrapTrait
getBsExtBasename() The yii2-bootstrap extension base name. kartik\base\BootstrapTrait
initBsVersion() Initializes bootstrap versions for the widgets and asset bundles. kartik\base\BootstrapTrait
isSameVersion() Compares two versions and checks if they are of the same major BS version. kartik\base\BootstrapTrait
parseVer() Parses and returns the major BS version kartik\base\BootstrapTrait

Property Details

$_bsVer protected property

Current bootstrap version number

protected integer $_bsVer null
$_defaultBtnCss protected property

Default bootstrap button CSS

protected string $_defaultBtnCss null
$_defaultIconPrefix protected property

Default icon CSS prefix

protected string $_defaultIconPrefix null
$_isBs4 protected property
Deprecated since v3.0.0 and replaced by $_bsVer flag

Flag to detect whether bootstrap 4.x version is set

This property is deprecated since v3.0.0 and replaced by the more flexible $_bsVer flag.

protected boolean $_isBs4 null
$bsColCssPrefixes public property

The bootstrap grid column css prefixes mapping, the key is the bootstrap versions, and the value is an array containing the sizes and their corresponding grid column css prefixes. The class using this trait, must implement BootstrapInterface. If not set will default to:

[
    3 => [
        self::SIZE_X_SMALL => 'col-xs-',
        self::SIZE_SMALL => 'col-sm-',
        self::SIZE_MEDIUM => 'col-md-',
        self::SIZE_LARGE => 'col-lg-',
        self::SIZE_X_LARGE => 'col-lg-',
    ],
    4 => [
        self::SIZE_X_SMALL => 'col-',
        self::SIZE_SMALL => 'col-sm-',
        self::SIZE_MEDIUM => 'col-md-',
        self::SIZE_LARGE => 'col-lg-',
        self::SIZE_X_LARGE => 'col-xl-',
    ],
    5 => [
        self::SIZE_X_SMALL => 'col-',
        self::SIZE_SMALL => 'col-sm-',
        self::SIZE_MEDIUM => 'col-md-',
        self::SIZE_LARGE => 'col-lg-',
        self::SIZE_X_LARGE => 'col-xl-',
    ],
];
$bsCssMap public static property

CSS conversion mappings across bootstrap library versions.

This is set as $key => $value pairs where:

  • $key: string, is the style type to be configured (one of the constants starting with BS_)
  • $value: array, consists of 3 rows / items, each of which can be setup either as string (single CSS class) or an array (multiple CSS classes). Each of the row items indicate the following:
    • the first item represents the CSS class(es) for Bootstrap 3.x.
    • the second item represents the CSS class(es) for Bootstrap 4.x
    • the third item represents the CSS class(es) for Bootstrap 5.x (if it does not exist will use bootstrap 4.x setting)
public static array $bsCssMap = [
    self::BS_SR_ONLY => ['sr-only''sr-only''visually-hidden'],
    
self::BS_PANEL => ['panel''card'],
    
self::BS_PANEL_HEADING => ['panel-heading''card-header'],
    
self::BS_PANEL_TITLE => ['panel-title''card-title'],
    
self::BS_PANEL_BODY => ['panel-body''card-body'],
    
self::BS_PANEL_FOOTER => ['panel-footer''card-footer'],
    
self::BS_PANEL_DEFAULT => ['panel-default', ['bg-light''text-dark']],
    
self::BS_PANEL_DARK => ['panel-default', ['bg-dark''text-white']],
    
self::BS_PANEL_SECONDARY => ['panel-default', ['bg-secondary''text-white']],
    
self::BS_PANEL_PRIMARY => ['panel-primary', ['bg-primary''text-white']],
    
self::BS_PANEL_SUCCESS => ['panel-success', ['bg-success''text-white']],
    
self::BS_PANEL_INFO => ['panel-info', ['bg-info''text-dark']],
    
self::BS_PANEL_WARNING => ['panel-warning', ['bg-warning''text-dark']],
    
self::BS_PANEL_DANGER => ['panel-danger', ['bg-danger''text-white']],
    
self::BS_LABEL => ['label''badge'],
    
self::BS_BADGE => ['badge', ['badge''badge-pill'], ['badge''rounded-pill']],
    
self::BS_LABEL_DEFAULT => ['label-default''badge-secondary''bg-secondary'],
    
self::BS_LABEL_LIGHT => ['label-default', ['bg-light''text-dark']],
    
self::BS_LABEL_DARK => ['label-default', ['bg-dark''text-white']],
    
self::BS_LABEL_PRIMARY => ['label-primary''badge-primary''bg-primary'],
    
self::BS_LABEL_SUCCESS => ['label-success''badge-success''bg-success'],
    
self::BS_LABEL_INFO => ['label-info''badge-info', ['bg-info''text-dark']],
    
self::BS_LABEL_WARNING => ['label-warning''badge-warning', ['bg-warning''text-dark']],
    
self::BS_LABEL_DANGER => ['label-danger''badge-danger''bg-danger'],
    
self::BS_TABLE_ACTIVE => ['default''table-active'],
    
self::BS_TABLE_PRIMARY => ['primary''table-primary'],
    
self::BS_TABLE_SUCCESS => ['success''table-success'],
    
self::BS_TABLE_INFO => ['info''table-info'],
    
self::BS_TABLE_WARNING => ['warning''table-warning'],
    
self::BS_TABLE_DANGER => ['danger''table-danger'],
    
self::BS_PROGRESS_BAR_ACTIVE => ['active''progress-bar-animated'],
    
self::BS_PROGRESS_BAR_PRIMARY => ['progress-bar-primary''bg-primary'],
    
self::BS_PROGRESS_BAR_SUCCESS => ['progress-bar-success''bg-success'],
    
self::BS_PROGRESS_BAR_INFO => ['progress-bar-info''bg-info'],
    
self::BS_PROGRESS_BAR_WARNING => ['progress-bar-warning''bg-warning'],
    
self::BS_PROGRESS_BAR_DANGER => ['progress-bar-danger''bg-danger'],
    
self::BS_WELL => ['well', ['card''card-body']],
    
self::BS_WELL_SM => ['well-sm', ['card''card-body''p-2']],
    
self::BS_WELL_LG => ['well-lg', ['card''card-body''p-4']],
    
self::BS_THUMBNAIL => ['thumbnail', ['card''card-body']],
    
self::BS_NAVBAR_DEFAULT => ['navbar-default''navbar-light'],
    
self::BS_NAVBAR_TOGGLE => ['navbar-toggle''navbar-toggler'],
    
self::BS_NAVBAR_RIGHT => ['navbar-right''ml-auto'],
    
self::BS_NAVBAR_BTN => ['navbar-btn''nav-item'],
    
self::BS_NAVBAR_FIXTOP => ['navbar-fixed-top''fixed-top'],
    
self::BS_NAV_STACKED => ['nav-stacked''flex-column'],
    
self::BS_NAV_ITEM => ['''nav-item'],
    
self::BS_NAV_LINK => ['''nav-link'],
    
self::BS_PAGE_ITEM => ['''page-item'],
    
self::BS_PAGE_LINK => ['''page-link'],
    
self::BS_LIST_INLINE_ITEM => ['''list-inline-item'],
    
self::BS_BTN_DEFAULT => ['btn-default''btn-secondary'],
    
self::BS_IMG_RESPONSIVE => ['img-responsive''img-fluid'],
    
self::BS_IMG_CIRCLE => ['img-circle''rounded-circle'],
    
self::BS_IMG_ROUNDED => ['img-rounded''rounded'],
    
self::BS_RADIO => ['radio''form-check'],
    
self::BS_CHECKBOX => ['checkbox''form-check'],
    
self::BS_INPUT_LG => ['input-lg''form-control-lg'],
    
self::BS_INPUT_SM => ['input-sm''form-control-sm'],
    
self::BS_CONTROL_LABEL => ['control-label''col-form-label'],
    
self::BS_TABLE_CONDENSED => ['table-condensed''table-sm'],
    
self::BS_CAROUSEL_ITEM => ['item''carousel-item'],
    
self::BS_CAROUSEL_ITEM_NEXT => ['next''carousel-item-next'],
    
self::BS_CAROUSEL_ITEM_PREV => ['prev''carousel-item-prev'],
    
self::BS_CAROUSEL_ITEM_LEFT => ['left''carousel-item-left'],
    
self::BS_CAROUSEL_ITEM_RIGHT => ['right''carousel-item-right'],
    
self::BS_CAROUSEL_CONTROL_LEFT => [['carousel-control''left'], 'carousel-control-left'],
    
self::BS_CAROUSEL_CONTROL_RIGHT => [['carousel-control''right'], 'carousel-control-right'],
    
self::BS_HELP_BLOCK => ['help-block''form-text'],
    
self::BS_PULL_RIGHT => ['pull-right''float-right''float-end'],
    
self::BS_PULL_LEFT => ['pull-left''float-left''float-start'],
    
self::BS_CENTER_BLOCK => ['center-block', ['mx-auto''d-block']],
    
self::BS_HIDE => ['hide''d-none'],
    
self::BS_HIDDEN_PRINT => ['hidden-print''d-print-none'],
    
self::BS_HIDDEN_XS => ['hidden-xs', ['d-none''d-sm-block']],
    
self::BS_HIDDEN_SM => ['hidden-sm', ['d-sm-none''d-md-block']],
    
self::BS_HIDDEN_MD => ['hidden-md', ['d-md-none''d-lg-block']],
    
self::BS_HIDDEN_LG => ['hidden-lg', ['d-lg-none''d-xl-block']],
    
self::BS_VISIBLE_PRINT => ['visible-print-block', ['d-print-block''d-none']],
    
self::BS_VISIBLE_XS => ['visible-xs', ['d-block''d-sm-none']],
    
self::BS_VISIBLE_SM => ['visible-sm', ['d-none''d-sm-block''d-md-none']],
    
self::BS_VISIBLE_MD => ['visible-md', ['d-none''d-md-block''d-lg-none']],
    
self::BS_VISIBLE_LG => ['visible-md', ['d-none''d-lg-block''d-xl-none']],
    
self::BS_FORM_CONTROL_STATIC => ['form-control-static''form-control-plaintext'],
    
self::BS_DROPDOWN_DIVIDER => ['divider''dropdown-divider'],
    
self::BS_SHOW => ['in''show']
]
$bsExtBasename public property

The yii2 bootstrap extension base name (readonly property available via getter method getBsExtBasename())

public integer $bsExtBasename null
$bsVer public property

Bootstrap version number currently set (readonly property available via getter method getBsVer())

public integer $bsVer null
$bsVersion public property

The bootstrap library version that you wish to use for this specific extension / widget.

  • To use with bootstrap 3 - you can set this to any string starting with 3 (e.g. 3 or 3.3.7 or 3.x)
  • To use with bootstrap 4 - you can set this to any string starting with 4 (e.g. 4 or 4.6.0 or 4.x)
  • To use with bootstrap 5 - you can set this to any string starting with 5 (e.g. 5 or 5.1.0 or 5.x)

This property can be set up globally in Yii application params in your Yii2 application config file.

For example:

'params' = [
    'bsVersion' => '5.x' // will enable Bootstrap 5.x globally
]

Note that if this property is set as part of this extension class, then the extension setting will override the Yii::$app->params['bsVersion']. This property will default to 3.x (Bootstrap 3.x version) if it is not set anywhere (extension or module or Yii params).

public integer|string $bsVersion null
$defaultBtnCss public property

Default bootstrap button CSS (readonly property available via getter method getDefaultBtnCss())

public string $defaultBtnCss null
$defaultIconPrefix public property

Default icon prefix (readonly property available via getter method getDefaultIconPrefix())

public string $defaultIconPrefix null
$dropdownClass public property

Bootstrap dropdown class name based on currently configured bootstrap version (readonly property available via getter method getDropdownClass())

public string $dropdownClass null

Method Details

addCssClass() public method

Adds bootstrap CSS class to options by parsing the bootstrap version for the specified Bootstrap CSS type.

public kartik\base\Widget|mixed addCssClass ( &$options, $type )
$options array

The HTML attributes for the container element that will be modified

$type string

The bootstrap CSS class type

return kartik\base\Widget|mixed

Current object instance that uses this trait

throws Exception
configureBsVersion() protected method

Configures the bootstrap version settings

protected integer configureBsVersion ( )
return integer

The bootstrap lib parsed version number (defaults to 3)

throws Exception
getBSClass() public method

Gets the respective Bootstrap class based on currently configured bootstrap version.

public void getBSClass ( $className )
$className string
throws yii\base\InvalidConfigException
getBsExtBasename() protected method

The yii2-bootstrap extension base name.

Based on the currently set bootstrap version (3, 4, or 5), returns one of bootstrap, bootstrap4 or bootstrap5.

protected string getBsExtBasename ( )
throws Exception
getBsVer() public method

Gets the current set bootstrap version number.

public integer getBsVer ( )
throws Exception
getCssClass() public method

Gets bootstrap css class by parsing the bootstrap version for the specified BS CSS type.

public string getCssClass ( $type, $asString true )
$type string

The bootstrap CSS class type

$asString boolean

Whether to return classes as a string separated by space

throws Exception
getDefaultBtnCss() public method

Gets the default button CSS

public string getDefaultBtnCss ( )
getDefaultIconPrefix() public method

Gets the default icon css prefix

public string getDefaultIconPrefix ( )
getDropdownClass() public method

Gets the respective bootstrap dropdown class name based on currently configured bootstrap version.

public string getDropdownClass ( $isBtn false )
$isBtn boolean

Whether to get the Button Dropdown widget class

throws yii\base\InvalidConfigException
initBsVersion() protected method

Initializes bootstrap versions for the widgets and asset bundles.

Sets the $_bsVer flag by parsing $bsVersion.

protected void initBsVersion ( )
throws yii\base\InvalidConfigException
isBs() public method

Validate Bootstrap version

public boolean isBs ( $ver )
$ver integer
throws Exception
isBs4() public method
Deprecated since v3.0.0 and replaced by the isBs() method

Validate if Bootstrap 4.x version.

This property is deprecated since v3.0.0 and replaced by the isBs() method.

public boolean isBs4 ( )
throws Exception
isSameVersion() protected static method

Compares two versions and checks if they are of the same major BS version.

protected static boolean isSameVersion ( $ver1, $ver2 )
$ver1 integer|string

First version

$ver2 integer|string

Second version

return boolean

Whether major versions are equal

parseVer() protected static method

Parses and returns the major BS version

protected static integer parseVer ( $ver )
$ver string
removeCssClass() public method

Removes bootstrap CSS class from options by parsing the bootstrap version for the specified Bootstrap CSS type.

public kartik\base\Widget|mixed removeCssClass ( &$options, $type )
$options array

The HTML attributes for the container element that will be modified

$type string

The bootstrap CSS class type

return kartik\base\Widget|mixed

Current object instance that uses this trait

throws Exception