bitplatform icon indicating copy to clipboard operation
bitplatform copied to clipboard

Add custom increments and decrements for hours and minutes in TimePicker

Open mostafa1374 opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

I was trying to increase or decrease the minutes for the time picker so that the user can change the time by increasing or decreasing by 15 minutes.

image image

Describe the solution you'd like

In the ChangeMinute and ChangeHour methods, within the increase and decrease sections, a property must be received. Based on this property, the value should either increase or decrease

for example:

private async Task ChangeMinute(bool isNext)
{
    if (isNext)
    {
        if (_minute < 59)
        {
            _minute += myPropsMin; // This Section
        }
        else
        {
            _minute = 0;
        }
    }
    else
    {
        if (_minute > 0)
        {
            _minute -= myPropsMin; // This Section
        }
        else
        {
            _minute = 59;
        }
    }

    await UpdateCurrentValue();
}

Additional context

for Hour:

private async Task ChangeHour(bool isNext)
{
    if (isNext)
    {
        if (_hour < 23)
        {
            _hour += MyPropHour // this section;
        }
        else
        {
            _hour = 0;
        }
    }
    else
    {
        if (_hour > 0)
        {
            _hour -= MyPropHour // this section;
        }
        else
        {
            _hour = 23;
        }
    }

    await UpdateCurrentValue();
}

mostafa1374 avatar Mar 13 '24 07:03 mostafa1374

@mostafa1374 Thanks for contacting us. We're investigating this issue. We'll let you know if it's possible to work on this issue.

msynk avatar Mar 13 '24 16:03 msynk

The issue is accepted and planned. Resolving it will start ASAP.

msynk avatar Mar 14 '24 09:03 msynk

Resolving this issue has started. It will be announced when this issue is resolved.

msynk avatar Mar 15 '24 10:03 msynk

This issue has been resolved and it will be available in the next pre-release version. It will be announced when the pre-release becomes ready.

msynk avatar Mar 15 '24 10:03 msynk

The pre-release has been published. Please give it a try and give feedback.

msynk avatar May 23 '24 20:05 msynk