Class: BulmaPhlex::Modal::StimulusDataAttributes

Inherits:
Data
  • Object
show all
Defined in:
lib/bulma_phlex/modal.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#stimulus_controllerObject (readonly)

Returns the value of attribute stimulus_controller

Returns:

  • (Object)

    the current value of stimulus_controller



10
11
12
# File 'lib/bulma_phlex/modal.rb', line 10

def stimulus_controller
  @stimulus_controller
end

Instance Method Details

#for_backgroundObject



12
# File 'lib/bulma_phlex/modal.rb', line 12

def for_background = { action: "click->bulma-phlex--modal#close" }

#for_close_buttonObject



13
# File 'lib/bulma_phlex/modal.rb', line 13

def for_close_button = { action: "bulma-phlex--modal#close" }

#for_containerObject



11
# File 'lib/bulma_phlex/modal.rb', line 11

def for_container = { controller: stimulus_controller }