Add an action into a column.

@param string     $key
@param string     $name
@param integer    $widthCoefficient
@param callable   $callback
@param Renderable $renderer

@return $this
557747
public function addActionColumn($key, $name, $widthCoefficient, $callback, $renderer)
    {
        $this->columns[] = new ActionColumn($key, $name, $widthCoefficient, $callback, $renderer);

        return $this;
    }
477491
public static function createCallback(string $name, callable $callback): NormalizationFieldMappingBuilderInterface
    {
        $self = new self($name);
        $self->fieldNormalizer = new CallbackFieldNormalizer($callback);

        return $self;
    }
514346
public function make($name, callable $callback) {
        $blueprint = new Blueprint($name, $this->config->getAdminURIPrefix());
        $callback($blueprint);
        $this->blueprints[$blueprint->getName()] = $blueprint;

        if($blueprint->hasPrimaryToolbarItem()) {
            $this->navigation->add($blueprint->getPrimaryToolbarItem());
        }
    }
364709
public function table($name, $callback = null)
    {   
        if (! $callback instanceof \Closure) {
            throw InvalidArgumentPassedException::isNotClosure();
        }

        $this->setTableName($name);

        $callback($this);
        
        $tableNamePrefixed = $this->getTableNamePrefix($this->getTableName());
        $tableStructure = \substr($this->getColumnsQuery() . $this->getPrimaryKeyQuery(), 0, -2);
        $tableCharsetCollate = $this->getCharacterSetCollate();

        $this->buildCreateTableQuery($tableNamePrefixed, $tableStructure, $tableCharsetCollate);

        $this->flushColumns();
        $this->flushPrimaryKey();
    }
1138342
public function addColumnNumber($key, $name, $column = null)
	{
		$this->addColumnCheck($key);
		$column = $column ?: $key;

		return $this->addColumn($key, new Column\ColumnNumber($this, $key, $column, $name));
	}
88804
public static function incr(string $name, string $key, $incrby = 1)
    {
        return static::getInstance($name)->incr($key, $incrby);
    }
396037
protected function addAction($name, $callback, $priority, $accepted_args)
    {
        add_action($name, $callback, $priority, $accepted_args);
    }
88225
public function getContactsTransactionalDataByKey($name, $key)
    {
        $url = $this->getApiEndpoint() . self::REST_TRANSACTIONAL_DATA . $name . '/'
            . $key;
        $this->setUrl($url)
            ->setVerb('GET');

        return $this->execute();
    }
392789
public function addElement($col, $name = null) {
		// Width
		if (is_int($col)) {
			$col = new TableCol([self::ATTR_WIDTH => $col . '%']);
		}
		// Attributes or class
		else if (is_array($col) || is_string($col)) {
			$col = new TableCol($col);
		}
		// Instance
		else if (! $col instanceof TableCol) {
			throw new Exception('Element must be an instance of the TableCol or a array or a string');
		}
		
		return parent::addElement($col, $name);
	}
480836
public function makeOnce($name, $callback)
    {
        if ($this->exists($name)) {
            return null;
        }

        return $this->make($name, $callback);
    }
766848
public function setRenderer($renderer, $condition_callback = null)
	{
		if ($this->hasReplacements()) {
			throw new DataGridException(
				'Use either Column::setReplacement() or Column::setRenderer, not both.'
			);
		}

		if (!is_callable($renderer)) {
			throw new DataGridException(
				'Renderer (method Column::setRenderer()) must be callable.'
			);
		}

		if ($condition_callback != null && !is_callable($condition_callback)) {
			throw new DataGridException(
				'Renderer (method Column::setRenderer()) must be callable.'
			);
		}

		$this->renderer = new Renderer($renderer, $condition_callback);

		return $this;
	}
165802
public function addBefore($key, callable $callback)
    {
        if ($this->addItem($key, $callback)) {
            return $this;
        }

        throw new \Exception(htmlspecialchars("The item $key was not found."));
    }
554547
public function make($name, $callback)
    {
        if (!is_callable($callback)) {
            return null;
        }

        if (!array_key_exists($name, $this->menu)) {
            $this->menu[$name] = new Builder($name, $this->loadConf($name));
        }

        // Registering the items
        call_user_func($callback, $this->menu[$name]);

        // Storing each menu instance in the collection
        $this->collection->put($name, $this->menu[$name]);

        // Make the instance available in all views
        View::share($name, $this->menu[$name]);

        return $this->menu[$name];
    }
201145
public function bind($key, $binder)
    {
        $this->binders[str_replace('-', '_', $key)] = RouteBinding::forCallback(
            $this->container, $binder
        );
    }
302951
public function addRelation($name) {
    if (!$this->hasValue($name)) {
      $this->relationStates[$name] = self::RELATION_STATE_UNINITIALIZED;
      $this->setValueInternal($name, null);
    }
  }
1198736
public function register($name, $callback)
    {
        $this->widgets[$name] = $callback;

        $this->registerBlade($name);
    }
38549
public function addFilterText($key, $name, $columns = null)
	{
		$columns = $columns === null? [$key] : (is_string($columns) ? [$columns] : $columns);

		if (!is_array($columns)) {
			throw new DataGridException('Filter Text can accept only array or string.');
		}

		$this->addFilterCheck($key);

		return $this->filters[$key] = new Filter\FilterText($this, $key, $name, $columns);
	}