public function style(Model $model, $source)
    {
        if ( ! $this->attributeData) {
            return null;
        }

        switch ($this->attributeData->cast) {

            case AttributeCast::INTEGER:
            case AttributeCast::FLOAT:
                return 'column-right';

            case AttributeCast::DATE:
                return 'column-date';

            // default omitted on purpose
        }

        return null;
    }
public function style(Model $model, $source)
    {
        if ( ! $this->attributeData) {
            return null;
        }

        switch ($this->attributeData->cast) {

            case AttributeCast::INTEGER:
            case AttributeCast::FLOAT:
                return 'column-right';

            case AttributeCast::DATE:
                return 'column-date';

            // default omitted on purpose
        }

        return null;
    }
public function style ( Model $ model , $ source ) { if ( ! $ this -> attributeData ) { return null ; } switch ( $ this -> attributeData -> cast ) { case AttributeCast :: INTEGER : case AttributeCast :: FLOAT : return 'column-right' ; case AttributeCast :: DATE : return 'column-date' ; // default omitted on purpose } return null ; }
Returns an optional style string for the list display value container.

@param Model  $model
@param string $source    source column, method name or value
@return string|null
Returns an optional style string for the list display value container .