TbHtml::addColClass PHP Method

addColClass() protected static method

Adds the appropriate column class to the given options applicable. The available columns are 'xs', 'sm', 'md', 'lg' for extra small, small, medium, and large to be used for the appropriate screen sizes. It is also possible to prevent your columns from stacking on smaller devices by combining a small column with a larger column: $htmlOptions = array( 'xs' => 12, 'md' => 8, ) Both classes will be applied.
protected static addColClass ( &$htmlOptions )
$htmlOptions
    protected static function addColClass(&$htmlOptions)
    {
        $colSizes = array(self::COLUMN_SIZE_XS, self::COLUMN_SIZE_SM, self::COLUMN_SIZE_MD, self::COLUMN_SIZE_LG);
        // It's possible to stack an xs and md grid together
        foreach ($colSizes as $colSize) {
            $span = TbArray::popValue($colSize, $htmlOptions);
            if (!empty($span)) {
                self::addCssClass('col-' . $colSize . '-' . $span, $htmlOptions);
            }
        }
    }
TbHtml