PATH:
home
/
lab2454c
/
incforce.com
/
wp-content
/
plugins
/
smart-slider-3
/
Nextend
/
Framework
/
Form
/
Element
/
Text
<?php namespace Nextend\Framework\Form\Element\Text; use Nextend\Framework\Asset\Js\Js; class NumberSlider extends Number { protected $step = 1; protected $sliderMax; protected function fetchElement() { $html = parent::fetchElement(); Js::addInline('new _N2.FormElementNumberSlider("' . $this->fieldID . '", ' . json_encode(array( 'min' => floatval($this->min), 'max' => floatval($this->sliderMax), 'step' => floatval($this->step), 'units' => $this->units )) . ');'); return $html; } /** * @param int $step */ public function setStep($step) { $this->step = $step; } /** * @param int $sliderMax */ public function setSliderMax($sliderMax) { $this->sliderMax = $sliderMax; } /** * @param int $max */ public function setMax($max) { parent::setMax($max); if ($this->sliderMax === null) { $this->sliderMax = $max; } } }
[+]
..
[-] FieldImageResponsive.php
[edit]
[-] Color.php
[edit]
[-] FieldImage.php
[edit]
[-] Family.php
[edit]
[-] Folder.php
[edit]
[-] Disabled.php
[edit]
[-] HiddenText.php
[edit]
[-] Video.php
[edit]
[-] Number.php
[edit]
[-] NumberAutoComplete.php
[edit]
[-] Url.php
[edit]
[-] NumberSlider.php
[edit]
[-] TextMultiAutoComplete.php
[edit]
[-] TextAutoComplete.php
[edit]