Sha256: f079a462c01962678c934dce20e330f10994176ee424b7984508f05ae75de8eb
Contents?: true
Size: 488 Bytes
Versions: 46
Compression:
Stored size: 488 Bytes
Contents
# frozen_string_literal: true # Allows you to add dialogs to your page. # Depends on `= turbo_frame_tag "dialog"` being present in the page, satis' page component has this by default. # module Satis module Dialog class Component < Satis::ApplicationComponent renders_many :actions attr_reader :title, :icon def initialize(title:, icon: nil) @title = title @icon = icon end def icon? icon.present? end end end end
Version data entries
46 entries across 46 versions & 1 rubygems