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.11.0.pre.alpha.paginate2 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.11.0.pre.alpha.paginate1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.11.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.10.0.pre.alpha.pre.bold1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.10.0.pre.alpha.pagination1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.10.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.9.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.9.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.8.1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.8.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.7.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.6.0 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/pb_dialog/dialog.rb
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/pb_dialog/dialog.rb