Лучший Ответ Staff , 06 February 2016 - 00:00
Ура! Вот так работает. И правда с element text оказалось просто
Полный код с рабочим фронтальным сабмитом.
App::getInstance('zoo')->loader->register('ElementRepeatable', 'elements:repeatable/repeatable.php'); class ElementRange extends ElementRepeatable implements iSubmittable { /* Function: edit Renders the edit form field. Returns: String - html */ public function _edit(){ $output = array(); $output[] = '<input name="' . $this->getControlName('value') . '" value="' . $this->get('value',$this->config->get('default')) . '" type="range" min="-15" max="15" step="5" />'; return implode('', $output); } public function _renderSubmission($params = array()) { return $this->_edit(); } }Перейти к сообщению