SlideButton - "Unlock" slider button

Create an "Unlock" slider button.
You can fully customize colors, background images, thumb color and icon, and corner radius. It also includes the option to add text that fades out as the thumb is passed over it.

20241106_084151


ㅤFunctionsㅤ

InitializeSlideButton

Initializes the slider button with the look you need.

  • id: Unique identifier.
  • arrangementComponent: Arrangement in which the slider button will be displayed.
  • backgroundColor: Background color of the slider button.
  • backgroundImagePath: Background image path from Assets.
  • thumbColor: Color of the thumb.
  • thumbImagePath: Path of the thumb image from Assets.
  • backgroundRadius: Background corner radius.
  • thumbRadius: Radius of the corners of the thumb.
  • returnSpeed: Speed ​​of return of the thumb when released.
  • text: Optional text to display in the background.
  • textColor: Color of the text.
  • textSize: Size of the text.

component_method (33)

GetIsChecked

Get the current state of the slider button (whether it is in the activated position or not).

  • id: Identifier of the slider button.
    Returns: true if the button is activated, false otherwise.

component_method (34)

SetChecked

Sets the state of the slider button, activated or deactivated.

  • id: Identifier of the slider button.
  • checked: true to activate the button, false to deactivate it.

ㅤEventsㅤ

component_event (16)

OnSlideChanged

Fired when the slider button changes its state (on or off).

  • id: Identifier of the slider button.
  • isChecked: true if the button is on, false if it is off.

ㅤExtension:ㅤ
joejsanz.joedevslidebutton.aix (14.0 KB)


Thanks.

8 Likes

Another awesome expansion to add to my favorite expansion list! Thank you so much for this amazing new expansion!

Nico

2 Likes

ㅤThanks a lot nico