Closed faeron closed 9 years ago
@Skullcrasher Please, provide your code so I can check. Thanks!
I also use the yii smarty renderer, thats why the code looks a bit different.
{widget name="yiiwheels.widgets.formhelpers.WhCountries"
_name= 'Object[country]'
useHelperSelectBox = true
value = 'DE'
pluginOptions = [
'country'=>'DE',
'flags'=>false,
'available'=>'DE,US'
]
}
but the options work, except the "available" option at the plugin website http://bootstrapformhelpers.com/country/ it should be example 2
I think what you are looking is to use the htmlOptions
instead:
htmlOptions => array(
'data-available' => 'DE,US'
)
For me the restriction to set selectable countries is not working if I set the plugin option "available". Is it even implemented? Anyone got it working though?