lara_dev_1970's avatar

lara_dev_1970 liked a comment+100 XP

6h ago

@jeffreyway Random question: do you have a plugin installed for your editor that creates the clickable links in the terminal?

lara_dev_1970's avatar

lara_dev_1970 wrote a comment+100 XP

9h ago

@priya_N_E Everything that is found between the tags will be captured by the slot variable, you don't need to declare it. This is so because that is how Laravel is programmed.

lara_dev_1970's avatar

lara_dev_1970 wrote a comment+100 XP

5d ago

@lara_dev_1970 Solution: Add:

                       
                        ->decimalPlaces(0)
        Slider::make('priority')
                        ->required()
                        ->minValue(1)
                        ->maxValue(10)
                        ->pips(Slider\Enums\PipsMode::Steps)
                        ->decimalPlaces(0)
                        ->step(1)
                        ->fillTrack()
                        ->tooltips()
                        ->default(0),
lara_dev_1970's avatar

lara_dev_1970 wrote a comment+100 XP

5d ago

Slider::make('priority')
                        ->required()
                        ->minValue(1)
                        ->maxValue(10)
                        ->pips(Slider\Enums\PipsMode::Steps)
                        ->step(1)
                        ->fillTrack()
                        ->tooltips()
                        ->default(0),

When the slider is in position 4 & 7 the tooltip shows 4.9999999999 or 6.99999999999