TemKa_SD 9 04/27/2019 02:39 PM (edited) Здравствуйте, как вернуть несколько зеленых бейджиков? protected function get__badge() { $mapcfg_name = iterator_to_array( \IPS\Db::i()->select( 'mapcfg_name', \IPS\wc3\Mapcfg::$databaseTable, array( 'map_id=?', $this->id )) ); if ($mapcfg_name) { $badge = array( 0 => 'positive ipsPos_right', 1 => implode(', ', $mapcfg_name) ); } else { $badge = NULL; } return $badge; } Чтобы оно не через запятую было, а разными бейджиками: http://prntscr.com/nhlyoo Edited April 27, 2019 by TemKa_SD Share this post Link to post
newbie 1,723 04/30/2019 05:31 AM get__badge - 1 бейдж. Можете реализовать метод /** * Fetch any additional HTML for this row * * @param object $node Node returned from $nodeClass::load() * @return NULL|string */ public function _getRowHtml( $node ) { return NULL; } 1 Share this post Link to post