settings['attr']['aria-'.$type] = $element; return $this; } /** * Sets data attribute * * @param string $type * @param string $element * * @return self */ public function data(string $type, string $element) { $this->settings['attr']['data-'.$type] = $element; return $this; } /** * Sets ice:repeating attribute * * @param string $element * * @return self */ public function iceRepeating(string $element) { $this->settings['attr']['ice:repeating'] = $element; return $this; } /** * Sets spry attribute * * @param string $type * @param string $element * * @return self */ public function spry(string $type, string $element) { $this->settings['attr']['spry-'.$type] = $element; return $this; } /** * Sets src attribute * * @param string $element * * @return self */ public function source(string $element) { $this->settings['attr']['src'] = $element; return $this; } /** * Sets title attribute * * @param string $element * * @return self */ public function title(string $element) { $this->settings['attr']['title'] = $element; return $this; } }