okonomi_ui_kit 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/helpers/okonomi_ui_kit/form_builder.rb +11 -0
- data/lib/okonomi_ui_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6dcaf7cc3b2377bc772e7a10b1aa077bf440743ef6c13e999eb9b5372c42ca7
|
4
|
+
data.tar.gz: f5c7b796716c8c823029a03fc76ad293356ee58d2e9af5b18b8d299100402b6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34f34becaab28a8ad277861856eceb3ee874544c869ae52ca5c4a2aa35ad0f34d21a5484f5d4a1eb9fd5b45d6056ee996fa69fc90b3f038bc0a06999adf70d0b
|
7
|
+
data.tar.gz: 9bbad8f7dbb9748765976e84a494250b3695c167b5578b7e9077bc963df622c6990b512372a2b7bc1fb7056d7bfc1f1afdcccf3a759262ce45aa459bd7b1a249
|
@@ -119,6 +119,17 @@ module OkonomiUiKit
|
|
119
119
|
end
|
120
120
|
end
|
121
121
|
|
122
|
+
def multi_select(method, **options)
|
123
|
+
@template.render(
|
124
|
+
partial: 'okonomi/forms/tailwind/multi_select',
|
125
|
+
locals: {
|
126
|
+
form: self,
|
127
|
+
method: method,
|
128
|
+
options: options
|
129
|
+
}
|
130
|
+
)
|
131
|
+
end
|
132
|
+
|
122
133
|
def label(method, text = nil, options = {}, &block)
|
123
134
|
base_classes = ui.get_theme.dig(:components, :label, :root)
|
124
135
|
super(method, text, merge_class(options, base_classes), &block)
|