Sha256: 4161843eb3d595a737416870c3764b0d98dd31680ee9de948342cc0e119d1aba

Contents?: true

Size: 1.09 KB

Versions: 189

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module Playbook
  module PbDialog
    class Dialog
      include Playbook::Props

      partial "pb_dialog/dialog"

      prop :ref
      prop :cancel_button
      prop :closeable, type: Playbook::Props::Boolean, default: true
      prop :confirm_button
      prop :oncancel
      prop :onchange
      prop :onclose
      prop :onconfirm
      prop :opened, type: Playbook::Props::Boolean, default: false
      prop :size, type: Playbook::Props::Enum,
                  values: %w[sm md lg content],
                  default: "md"
      prop :text
      prop :title
      prop :trigger

      def dialog_options
        {
          id: id,
          ref: ref,
          trigger: trigger,
          className: classname,
          cancelButton: cancel_button,
          closeable: closeable,
          confirmButton: confirm_button,
          onCancel: oncancel,
          onChange: onchange,
          onClose: onclose,
          onConfirm: onconfirm,
          opened: opened,
          size: size,
          text: text,
          title: title,
        }
      end
    end
  end
end

Version data entries

189 entries across 189 versions & 1 rubygems

Version Path
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.5.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.4.0.pre.alpha.rubytheme1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.4.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.3.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.7 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.6 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.5 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.4 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.4.pre.alpha1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.3 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.2 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.2.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.1.2 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.1.2.pre.alpha1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.1.1 app/pb_kits/playbook/pb_dialog/dialog.rb