glib-web 4.25.0 → 4.26.0
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccf394d2a3330307c4f45ea71ae4b95a180ab5eb83027a1a6ce25731846ae14f
|
4
|
+
data.tar.gz: 230e5374083ef9d72f92194532507536945a7a0e79b80c4136365f20a3eeeff7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d76d4e20362a218a691d3bcaa8f3bd23dc975009dbbd437326c0347ae4bd79a110cc3151b042bbd14967fe986e463b598c2d282ad0b99c7fe7fe2d99f92d7f8
|
7
|
+
data.tar.gz: 7531d24512b2cb844964ba782563eb2bdcb19d4fee45a85e68e6cdddcdf4fe2a076edc8a26f023aac989b4353de0becbfec976eed1018c9245ad46e5e71e989c
|
@@ -210,6 +210,10 @@ class Glib::JsonUi::ViewBuilder
|
|
210
210
|
@models = models
|
211
211
|
end
|
212
212
|
|
213
|
+
def autofocus(value)
|
214
|
+
@autofocus = value
|
215
|
+
end
|
216
|
+
|
213
217
|
# Override
|
214
218
|
def created
|
215
219
|
if @models
|
@@ -228,6 +232,9 @@ class Glib::JsonUi::ViewBuilder
|
|
228
232
|
json.url @url
|
229
233
|
json.method @method
|
230
234
|
|
235
|
+
@autofocus = true if @autofocus.nil?
|
236
|
+
json.autofocus @autofocus
|
237
|
+
|
231
238
|
json.childViews do
|
232
239
|
if @method != :get
|
233
240
|
json.child! do
|
@@ -31,6 +31,18 @@ page.form url: json_ui_garage_url(path: 'forms/generic_post'), method: 'post', p
|
|
31
31
|
template.fields_text width: 'matchParent', name: 'question', label: 'Question', placeholder: 'Question'
|
32
32
|
|
33
33
|
form.panels_responsive id: 'responsive_{{entryIndex}}', childViews: ->(column) do
|
34
|
+
column.panels_split width: 'matchParent', content: ->(split) do
|
35
|
+
split.center childViews: ->(center) do
|
36
|
+
center.fields_dynamicSelect \
|
37
|
+
name: '[primary_language]',
|
38
|
+
width: 'matchParent',
|
39
|
+
label: 'Primary Language',
|
40
|
+
selectedOptions: [ { value: 'id3', text: 'Item 3' } ],
|
41
|
+
url: json_ui_garage_url(path: 'forms/dynamic_select_data'),
|
42
|
+
placeholder: 'Start typing'
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
34
46
|
options = [:rating, :yes_no, :choices, :unspecified]
|
35
47
|
template.fields_select \
|
36
48
|
width: 'matchParent',
|