DaisyUIComponents.JSHelpers (DaisyUIComponents v0.8.4)

View Source

Common JS functions from Phoenix Core Components.

Summary

Functions

Hides an element specified by the selector with a transition effect.

Shows the specified element with a smooth transition effect.

Functions

hide(js \\ %JS{}, selector)

Hides an element specified by the selector with a transition effect.

Parameters

  • js - an optional composable JS script which will be executed.
  • selector - the CSS selector of the element to be hidden.

Description

Executes a hide action on the specified element with a transition effect.

show(js \\ %JS{}, selector)

Shows the specified element with a smooth transition effect.

Parameters

  • js - an optional composable JS script which will be executed.
  • selector - the CSS selector of the element to be shown.

Description

Applies a transition effect to the selected element, altering its opacity and position over a specified duration.