public function quickmenu() { if (empty($this->quickmenu)) { $this->quickmenu = nc_ui_html::get('ul')->class_name('nc-quick-menu'); } return $this->quickmenu; }
public function &add_btn($href = NULL, $text = NULL) { $item = nc_ui_html::get('li'); $item->href($href)->text($text); $this->items[] =& $item; return $item; }
/** * Кнопка удаления с параметрами для POST-запроса. * В параметрах запроса устанавливает "action" = "remove", если не указано другое значение. * * @param string $confirmation_text * @param array $parameters * @return string */ public function delete_button($confirmation_text, array $parameters) { if (!isset($parameters['action'])) { $parameters['action'] = 'remove'; } /** @var nc_ui_html $result */ $result = nc_ui_html::get('a')->icon('remove')->post_vars($parameters)->attr('data-confirm-message', $confirmation_text); return $result->render(); }
public function thead() { $row = nc_ui_html::get('tr'); $this->heading = $row; return $row; }
public function add_btn($href = NULL, $text = NULL) { $li = nc_ui_html::get('li')->href($href)->text($this->mb_ucfirst($text)); $this->items[] = $li; return $li; }
public function h1($text) { return nc_ui_html::get('h1')->class_name('nc-h1')->text($text); }
public function add() { return nc_ui_html::get('', $this); }