Sha256: d62ac0616f7dd1886b0b15f398d7fabd47d6a34ff4238e84444c00fe6947b626

Contents?: true

Size: 850 Bytes

Versions: 1

Compression:

Stored size: 850 Bytes

Contents

# frozen_string_literal: true

require_relative '../../components/ccs/dashboard_section'

module CCS
  module FrontendHelpers::CCSFrontend
    # = CCS Dashboard Section
    #
    # This helper is used for generating the dashboard section component

    module DashboardSection
      # Generates the HTML for the CCS Dashboard Section component
      #
      # @param (see CCS::Components::CCS::DashboardSection#initialize)
      #
      # @option (see CCS::Components::CCS::DashboardSection#initialize)
      #
      # @return (see CCS::Components::CCS::DashboardSection#render)

      def ccs_dashboard_section(dashboard_section_panels, title_text = nil, **options)
        Components::CCS::DashboardSection.new(context: self, dashboard_section_panels: dashboard_section_panels, title_text: title_text, **options).render
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ccs-frontend_helpers-0.1.0.rc.2 lib/ccs/frontend_helpers/ccs_frontend/dashboard_section.rb