Sha256: f42715f074f7594f034a3a7868f22f62b19e7fd1b54ab93f169b393837cdd803

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

# frozen_string_literal: true

module Playbook
  module PbDialog
    class DialogFooter < Playbook::KitBase
      prop :cancel_button
      prop :cancel_button_id
      prop :confirm_button
      prop :confirm_button_id
      prop :loading

      def classname
        generate_classname("dialog_footer")
      end

      def cancel_loading
        loading ? { disable_cancel_with: "Loading" } : {}
      end

      def loading_data
        loading ? { disable_with: "Loading" } : {}
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
playbook_ui-14.1.0.pre.alpha.PBNTR462starratingdefaultvalue3579 app/pb_kits/playbook/pb_dialog/dialog_footer.rb