Exemple #1
0
 /**
  * @param Rendered|string $content
  * @return $this
  */
 public function prepareContent($content)
 {
     if ($content instanceof Rendered) {
         //$this->content = $content->setService(new Service());
         $content->recursiveOnLoad();
     }
     return $this;
 }
Exemple #2
0
 /**
  * @param Rendered|string $content
  * @return $this
  */
 public function prepareContent($content)
 {
     if ($content instanceof Rendered) {
         $content->recursiveOnLoad();
     }
     return $this;
 }
Exemple #3
0
 /**
  *
  */
 public function render()
 {
     if ($this->getTitle()) {
         $this->addAttribute('title', $this->getTitle());
     }
     foreach ($this->getAppearances()->getAll() as $appearance) {
         $appearance->execute($this);
     }
     return parent::render();
 }
Exemple #4
0
 /**
  * @param Rendered $object
  */
 public function execute(Rendered $object)
 {
     if ($this->getTransform()) {
         $object->addClass('text-' . $this->getTransform());
     }
 }
Exemple #5
0
 /**
  * @param int $index
  * @param Column|string $column
  * @return $this
  */
 public function insertBefore($index, $column)
 {
     parent::insertBefore($index, $column);
     return $this;
 }
Exemple #6
0
 /**
  * @param Rendered $wrapper
  * @return $this
  */
 public function setInnerWrap(Rendered $wrapper)
 {
     $wrapper->getContent()->setContents($this->getContent()->toArray());
     $this->getContent()->setContents([$wrapper]);
     return $this;
 }
Exemple #7
0
 /**
  * @param Rendered $object
  */
 public function execute(Rendered $object)
 {
     if ($this->getAlignment()) {
         $object->addClass('text-' . $this->getAlignment());
     }
 }
Exemple #8
0
 /**
  * @param mixed $content
  * @param string $title
  * @return $this
  */
 public static function create($content = null, $title = null)
 {
     return parent::traitCreate($content, $title);
 }