# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
Oops |
# |
Jul 15th 2019, 18:31 |
ricksaccous |
but these sliders are used throughout so if i can make them a widget it would help |
# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
`'inputContainer' => '<div class="form-group input {{type}}{{required}}">{{content}}{{helptext}}</div>',` |
# |
Jul 15th 2019, 18:31 |
daniel.upshaw |
Maybe try this |
# |
Jul 15th 2019, 18:31 |
ricksaccous |
i just use the templates, and they work fine for that |
# |
Jul 15th 2019, 18:30 |
ricksaccous |
the default checkboxes i already have working |
# |
Jul 15th 2019, 18:30 |
ricksaccous |
it's the sliders |
# |
Jul 15th 2019, 18:30 |
ricksaccous |
but it's not the default checkboxes |
# |
Jul 15th 2019, 18:30 |
ricksaccous |
some bootstrap related theme |
# |
Jul 15th 2019, 18:30 |
daniel.upshaw |
I might have an answer for you |
# |
Jul 15th 2019, 18:29 |
daniel.upshaw |
E.g., to fit in boostrap etc? |
# |
Jul 15th 2019, 18:29 |
daniel.upshaw |
You're trying to nest checkbox controls differently @ricksaccous? |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
also the defaults for templateVars don't work, lmao |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
because it's using 'label' |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
just not using the nestingLabel template I want it to |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
it's correctly over-riding the templates |
# |
Jul 15th 2019, 18:28 |
ricksaccous |
yeah that piece of the code is working |
# |
Jul 15th 2019, 18:27 |
genellern |
Hmm, I wonder if templates add would work, have you checked the templates in your widget? |
# |
Jul 15th 2019, 18:27 |
ricksaccous |
instead of the widget |
# |
Jul 15th 2019, 18:27 |
ricksaccous |
i might just plop that in an element and call it a day |
# |
Jul 15th 2019, 18:27 |
ricksaccous |
to get checkboxes to use x templates |
# |
Jul 15th 2019, 18:26 |
ricksaccous |
I think formHelper just uses some magic i don't understand |
# |
Jul 15th 2019, 18:26 |
ricksaccous |
This is working though: |
# |
Jul 15th 2019, 18:26 |
slackebot |
<ricksaccous> |
# |
Jul 15th 2019, 18:23 |
ricksaccous |
I don't want to use label template because then i can't get the hidden field |
# |
Jul 15th 2019, 18:23 |
ricksaccous |
it's using 'label' template instead of nestingLabel template |
# |
Jul 15th 2019, 18:21 |
ricksaccous |
@genellern https://gist.github.com/Modicrumb/e848e4f610e52d9b9884650eb3016608 |
# |
Jul 15th 2019, 18:19 |
genellern |
Do you care to show me your code? |
# |
Jul 15th 2019, 18:19 |
ricksaccous |
it uses the same widget, but different templates |
# |
Jul 15th 2019, 18:18 |
genellern |
Are you sure checkbox uses the template a text input would use? |
# |
Jul 15th 2019, 18:18 |
ricksaccous |
I'm setting the type in the widget, meh |
# |
Jul 15th 2019, 18:17 |
ricksaccous |
it refuses to use the stupid nestingLabel |
# |
Jul 15th 2019, 18:17 |
ricksaccous |
manually set the type to "checkbox" |
# |
Jul 15th 2019, 18:17 |
ricksaccous |
but when i try to create a widget |
# |
Jul 15th 2019, 18:17 |
ricksaccous |
it's working fine when i attach the 'templates' to an input |
# |
Jul 15th 2019, 18:16 |
ricksaccous |
yeah, been messing around with those |
# |
Jul 15th 2019, 18:16 |
genellern |
Have you tried changing the templates? |
# |
Jul 15th 2019, 18:15 |
ricksaccous |
i'm building a widget and i can't figure out how to force the widget to use label of type nestingLabel |
# |
Jul 15th 2019, 18:15 |
ricksaccous |
for the life of me |
# |
Jul 15th 2019, 18:07 |
bird87_za |
Does anyone know of an API I can use to authenticate a user on his xbox profile and pull that data into my app? |
# |
Jul 15th 2019, 17:14 |
devito |
thank |