Module: Satis

Extended by:
Configurable
Defined in:
app/components/satis/tabs/component.rb,
lib/satis/engine.rb,
lib/satis/version.rb,
lib/satis/satisfied.rb,
lib/satis/menus/item.rb,
lib/satis/menus/menu.rb,
lib/satis/configuration.rb,
lib/satis/forms/builder.rb,
lib/satis/menus/builder.rb,
app/models/satis/user_data.rb,
lib/satis/helpers/container.rb,
lib/satis/forms/concerns/file.rb,
app/jobs/satis/application_job.rb,
lib/satis/forms/concerns/select.rb,
lib/satis/forms/concerns/buttons.rb,
lib/satis/forms/concerns/options.rb,
lib/satis/forms/concerns/required.rb,
app/components/satis/map/component.rb,
app/components/satis/tab/component.rb,
app/components/satis/card/component.rb,
app/components/satis/info/component.rb,
app/components/satis/menu/component.rb,
app/components/satis/page/component.rb,
app/models/satis/application_record.rb,
lib/satis/action_controller_helpers.rb,
app/components/satis/input/component.rb,
app/helpers/satis/application_helper.rb,
app/mailers/satis/application_mailer.rb,
app/components/satis/avatar/component.rb,
app/components/satis/dialog/component.rb,
app/components/satis/editor/component.rb,
app/components/satis/switch/component.rb,
app/components/satis/sidebar/component.rb,
lib/generators/satis/install_generator.rb,
app/components/satis/dropdown/component.rb,
app/components/satis/info_item/component.rb,
app/components/satis/menu_item/component.rb,
app/controllers/satis/dialogs_controller.rb,
app/components/satis/application_component.rb,
app/components/satis/breadcrumbs/component.rb,
app/components/satis/input_array/component.rb,
app/controllers/satis/user_data_controller.rb,
app/helpers/satis/showcases/avatars_helper.rb,
lib/satis/concerns/contextual_translations.rb,
app/components/satis/color_picker/component.rb,
app/components/satis/progress_bar/component.rb,
app/components/satis/sidebar_menu/component.rb,
app/controllers/satis/application_controller.rb,
app/components/satis/calendar_month/component.rb,
app/components/satis/flash_messages/component.rb,
app/controllers/satis/documentation_controller.rb,
lib/generators/satis/tailwind_config_generator.rb,
app/components/satis/date_time_picker/component.rb,
app/components/satis/sidebar_menu_item/component.rb,
app/components/satis/appearance_switcher/component.rb,
app/components/satis/sidebar_menu/mobile/component.rb,
app/controllers/satis/documentation/tabs_controller.rb,
app/controllers/satis/documentation/cards_controller.rb,
app/controllers/satis/documentation/forms_controller.rb,
app/controllers/satis/documentation/avatars_controller.rb,
app/controllers/satis/documentation/editors_controller.rb,
app/components/satis/sidebar_menu_item/mobile/component.rb,
lib/satis.rb

Overview

app/components/satis/sidebar/component.rb

Defined Under Namespace

Modules: ActionControllerHelpers, ActiveRecordHelpers, AppearanceSwitcher, ApplicationHelper, Avatar, Breadcrumbs, CalendarMonth, Card, ColorPicker, Concerns, Configurable, DateTimePicker, Dialog, Dropdown, Editor, FlashMessages, Forms, Generators, Helpers, Info, InfoItem, Input, InputArray, Map, Menu, MenuItem, Menus, Options, Page, ProgressBar, Satisfied, Sidebar, SidebarMenu, SidebarMenuItem, Switch, Tab, Tabs Classes: ApplicationComponent, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Configuration, DialogsController, DocumentationController, Engine, InstallGenerator, StsWrapper, UserData, UserDataController

Constant Summary collapse

VERSION =
"2.1.39"

Instance Attribute Summary

Attributes included from Configurable

#config

Class Method Summary collapse

Methods included from Configurable

configure, reset_config!

Class Method Details

.add_component_helper(component_name, name, component) ⇒ Object



29
30
31
32
33
# File 'lib/satis.rb', line 29

def add_component_helper(component_name, name, component)
  klass = "Satis::#{component_name.to_s.classify}::Component".safe_constantize
  return if klass.blank?
  klass.add_helper name, component
end

.add_helper(name, component) ⇒ Object



25
26
27
# File 'lib/satis.rb', line 25

def add_helper(name, component)
  Satis::Helpers::Container.add_helper(name, component)
end

.confirm_before_leave?Boolean

Returns:

  • (Boolean)


13
14
15
16
17
# File 'lib/satis.rb', line 13

def confirm_before_leave?
  return false if config.nil?

  config.confirm_before_leave
end

.submit_on_enter?Boolean

Returns:

  • (Boolean)


19
20
21
22
23
# File 'lib/satis.rb', line 19

def submit_on_enter?
  return true if config.nil?

  config.submit_on_enter
end