Class: Slot

munchkin~ws.ui. Slot

new Slot()

Manage `.slot` HTML components.
Version:
  • 1.0.0
Author:
  • Bruno Lesieur
Source:

Members

className :string

The original name of component.
Type:
  • string
Default Value:
  • "slot"
Source:

(private, inner) privates :string

All privates function could be attached here.
Type:
  • string
Source:

Methods

hashBindWithTab(selectoropt, eventTriggeropt)

Show the tabs with the matched hashValue from hash part of curret url.
Parameters:
Name Type Attributes Description
selector string <optional>
Select alternative Sender HTML Components to apply the behavior.
eventTrigger string <optional>
Select alternative Target HTML Components to apply the behavior.
Source:

toggleContent(sendersSelectoropt, targetsSelectoropt, eventListeneropt)

Show the i-th (base-0) `.slot.as-toggles` content and Hide others when you click on the i-th `.slot-tabs .btn` with an `.is-active` toggle class on the senders and. with an `.is-displayed` toggle class on the targets.
Parameters:
Name Type Attributes Description
sendersSelector string <optional>
Select alternative Sender HTML Components to apply the behavior.
targetsSelector string <optional>
Select alternative Target HTML Components to apply the behavior.
eventListener string <optional>
Select alternative Event to perform the behavior.
Source: