Set the icon to display before the value (optional).

@param string $icon
@param bool $showWithNoValue

@return \Okipa\LaravelBootstrapTableList\TableListColumn
503583
public function setIcon(string $icon, $showWithNoValue = false): TableListColumn
    {
        $this->setAttribute('icon', $icon);
        $this->setAttribute('showIconWithNoValue', $showWithNoValue);

        return $this;
    }
1186054
public function setIcon($icon)
    {
        $this->icon = $icon;

        $type = mb_substr($icon, 0, 1) === ':' && mb_substr($icon, -1) === ':'
            ? 'iconEmoji'
            : 'iconUrl';

        $this->$type = $icon;

        return $this;
    }
739831
public static function activeIcon($active, array $options = [], $withTooltip = true)
    {
        // TODO: Refactor the options to a dedicated config file.
        $classes      = Arr::get($options, 'classes', [
            'enabled'  => 'label label-success',
            'disabled' => 'label label-default',
        ]);
        $translations = Arr::get($options, 'trans', [
            'enabled'  => 'core::statuses.enabled',
            'disabled' => 'core::statuses.disabled',
        ]);
        $icons = Arr::get($options, 'icons', [
            'enabled'  => 'fa fa-fw fa-check',
            'disabled' => 'fa fa-fw fa-ban',
        ]);

        $key        = $active ? 'enabled' : 'disabled';
        $attributes = ['class' => $classes[$key]];
        $value      = static::generateIcon($icons[$key]);

        return $withTooltip
            ? static::generateWithTooltip($value, ucfirst(trans($translations[$key])), $attributes)
            : static::generate($value, $attributes);
    }
722848
public void setIcon(Icon icon) {
        Icon old = null;
        if (iconInfo == CommandButtonIconInfo.BLANK_ICON_INFO) {
            if (icon != null) {
                // New IconInfo fires event
                setIconInfo(new CommandButtonIconInfo(icon));
            }
        }
        else {
            old = iconInfo.getIcon();
            this.iconInfo.setIcon(icon);
        }
        firePropertyChange(ICON_PROPERTY, old, icon);
    }
228410
public function addIcon(IconSequence $icon)
    {
        $copy = clone $icon;
        $copy->setName(null);
        $this->options['icons'][] = new JsExpression($copy->getJs());
    }
461881
public function setIcon($icon) {
		if (isset($this->_icon)) {
			$this->removePropertyValue("class", $this->_icon);
		}
		$this->_icon=$icon;
		$this->addToProperty("class", $icon);
		return $this;
	}
890055
public function addToIcon($icon) {
		$this->addToProperty("class", $icon);
		return $this->addToMember($this->_icon, $icon);
	}
184155
public function setIcon($icon)
    {
        $this->icon = $this->factory->create('Fontawesome\Icon');
        $this->icon->setIcon($icon);

        return $this;
    }
333453
public static function icon($identifier, $icon) {
		$result=new HtmlButton($identifier);
		$result->asIcon($icon);
		return $result;
	}
1064372
public function datatableIcon(Twig_Environment $twig, $icon, $label = '')
    {
        if ($icon)
            return $twig->render('SgDatatablesBundle:Action:icon.html.twig', array('icon' => $icon, 'label' => $label));
        else
            return $label;
    }
208947
public function setIcon($source, $type = self::ICON_ASSET) {
		$this->iconType   = (string) $type;
		$this->iconSource = (string) $source;
		
		return $this;
	}
471619
public static function icon($icon, $options = [])
    {
        Html::addCssClass($options, $icon . ' icon');
        return Html::tag(ArrayHelper::remove($options, 'tag', 'i'), '', $options);
    }
1011077
public function addIcon($i)
    {
        /** @type Icon $icon */
        $icon = $this->add('Icon', null, 'Icon');

        return $icon->set($i)->addClass('atk-size-mega');
    }
477715
public void setFrameIcon(Icon newIcon) {
        Icon oldIcon = getFrameIcon();
        titleLabel.setIcon(newIcon);
        firePropertyChange("frameIcon", oldIcon, newIcon);
    }
152507
public function setHeaderPopup($popup, $icon = 'caret square down')
    {
        $this->hasHeaderAction = true;
        $id = $this->name.'_ac';

        $this->headerActionTag = ['div',  ['class'=>'atk-table-dropdown'],
            [
                ['i', ['id' => $id, 'class' => $icon.' icon']],
            ],
        ];
        $popup->triggerBy = '#'.$id;
        $popup->popOptions = array_merge($popup->popOptions, ['on' =>'click', 'position' => 'bottom right', 'movePopup' => false]);
        $popup->stopClickEvent = true;

        if (@$_GET['__atk_reload']) {
            //This is part of a reload, need to reactivate popup.
            $this->table->js(true, $popup->jsPopup());
        }
    }
579088
public function setType($type)
    {
        if ($type === null) {
            $this->$type = $type;
        } else {
            $iconSetType = new IconSetTypeEnum($type);
            $this->type = $iconSetType->getValue();
        }

        return $this;
    }
146238
public function addIcon($row, $label, DataContainer $dc, $args)
  {
    $image = 'file_type_sets';
    
    if (!$row['published'])
    {
      $image .= '_';
    }
    
    $args[0] = sprintf('<div class="list_icon_new" style="background-image:url(\'system/modules/DocumentManagementSystemFileTypeSets/assets/%s.png\'); height: 16px;" data-icon="system/modules/DocumentManagementSystemFileTypeSets/assets/%s.png" data-icon-disabled="system/modules/DocumentManagementSystemFileTypeSets/assets/%s.png">&nbsp;</div>', $image, rtrim($image, '_'), rtrim($image, '_') . '_');
    
    $args[2] = \ContaoDMS\DmsUtils::getCuttedAllowedFileTypes($row['file_types']);
    
    return $args;
  }