TemKa_SD Posted April 27, 2019 Share Posted April 27, 2019 (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 Link to comment Share on other sites More sharing options...
newbie Posted April 30, 2019 Share Posted April 30, 2019 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now