Esempio n. 1
0
 /**
  * Create a button element.
  *
  * @param  string  $value
  * @param  array   $options
  *
  * @return string
  */
 public function button($value = null, $options = [])
 {
     if (!array_key_exists('type', $options)) {
         $options['type'] = 'button';
     }
     return '<button' . $this->html->attributes($options) . '>' . $value . '</button>';
 }
Esempio n. 2
0
 /**
  * {@inheritdoc}
  */
 protected function listingElement($key, $type, $value)
 {
     return $this->raw(parent::listingElement($key, $type, $value));
 }