min = $min; return $this; } /** * 最大值 * @param int $max * @return $this */ public function max($max) { $this->max = $max; return $this; } /** * 是否禁用 * @param bool $disabled * @return $this */ public function disabled($disabled) { $this->disabled = $disabled; return $this; } /** * 步长 * @param int $step * @return $this */ public function step($step) { $this->step = $step; return $this; } /** * 是否显示输入框,仅在非范围选择时有效 * @param bool $showInput * @return $this */ public function showInput($showInput = true) { $this->showInput = $showInput; return $this; } /** * 在显示输入框的情况下,是否显示输入框的控制按钮 * @param bool $showInputControls * @return $this */ public function showInputControls($showInputControls = true) { $this->showInputControls = $showInputControls; return $this; } /** * 输入框的尺寸 * large / medium / small / mini * @param string $inputSize * @return $this */ public function inputSize($inputSize) { $this->inputSize = $inputSize; return $this; } /** * 是否显示间断点 * @param bool $showStops * @return $this */ public function showStops($showStops = true) { $this->showStops = $showStops; return $this; } /** * 是否显示 tooltip * @param bool $showTooltip * @return $this */ public function showTooltip($showTooltip = true) { $this->showTooltip = $showTooltip; return $this; } /** * 是否为范围选择 * @param bool $range * @return $this */ public function range($range = true) { $this->range = $range; return $this; } /** * 是否竖向模式 * @param bool $vertical * @param string $height * @return $this */ public function vertical($vertical = true, $height = "100px") { $this->vertical = $vertical; $this->height = $height; return $this; } /** * Slider 高度,竖向模式时必填 * @param mixed $height * @return $this */ public function height($height) { $this->height = $height; return $this; } /** * 屏幕阅读器标签 * @param string $label * @return $this */ public function label($label) { $this->label = $label; return $this; } /** * tooltip 的自定义类名 * @param string $tooltipClass * @return $this */ public function tooltipClass($tooltipClass) { $this->tooltipClass = $tooltipClass; return $this; } }