/** * @return $this */ public function render() { $model = $this->form->instance; $value = $this->column; $oldInputValue = Admin::$instance->formBuilder->getSessionStore()->getOldInput($value); if (!$oldInputValue) { $inputValue = $model->{$value}; } else { $inputValue = $oldInputValue; } $options = ['data-min-value' => $this->minValue, 'data-max-value' => $this->maxValue]; HtmlBuilder::number($this->name, $this->label, (int) $inputValue, $this->getOptions($options)); }