I am using ui-select in AngularJS to show select options from given values. I want to display a choice when there is no search result. Is there any way to accomplish this task?
you can use ui-select-no-choice. It should be used right after ui-select-choices. Refer to official documentation i have included link.
<ui-select-no-choice>
Sorry! No choices found!!
</ui-select-no-choice>
Reference : ui-select-no-choice
Related
I have problem with custom placeholder. I am using this https://github.com/mareczek/international-phone-number I want to add more ex. E.g. 131123456789 to my place holder which default gave something like this 131123456789. I read the document they use customPlaceholder to custom place holder, but they do not have any example with angularjs, so could someone show me example code with custom place holder like this.
Here my code that I added to my app
app.config([
'$stateProvider',
ipnConfig,
register_form_state
])->ipnConfig.customPlaceholder = 'E.g. 131123456789'
but it doesn't work for me.
This will solve this problem
http://hodgepodgers.github.io/ng-intl-tel-input/
Please refer this link & this is angularJS plugin
https://github.com/hodgepodgers/ng-intl-tel-input
On selection of country, placeholder will change
The documentation for http://hodgepodgers.github.io/ng-intl-tel-input/ is lacking, but it seems like it could be a good tool. I think I would personally like to see a working implementation inside of an existing application before I'd rule it as the solution to use. I'm still having trouble implementing this one compared to the one by mareczek.
edit To answer your question, I think that it changes the placeholder based on the flag you have selected. If you have it set to a default country, can you not just change the placeholder in the html? Or can you target it directly using css?
Im trying to look up to see if UISelect(multiple) provides a feature to drag move items within the control to sort the list ?
I tried googling for the same and couldn't find much information on this.
Appreciate if you can provide link to some kind of documentation so that i can start from there.
NOTE : I fairly understand how UISelect works.
Just for reference: There has been added a sortable="true" option in v0.10. However this feature is not yet properly documented, but for further information, see this github issue or demo-multi-select.html in the examples folder.
It uses the ui-select-match directive as the "template" inside an ng-repeat that generates them.
Unfortunately that ng-repeat, unlike ui-select-choices's repeat parameter is hardcoded inside ui-select's directive templates.
Look at this template: https://github.com/angular-ui/ui-select/blob/master/src/select2/match-multiple.tpl.html
In the build version of ui-select it's inlined using $templateCache, thus you can easily replace it with your own version and apply sorting on that ng-repeat="$item in $select.selected".
You could also integrate something like ngDraggable there.
The main issue here would be CSS though and absolute positioning used.
The CakePHP documentation does not cover the escaping of values when using FormHelper::radio().
Actually (in cakephp 2.4) it seems trying to set escape=true has no effect. Is there a better way than escaping the options manually?
It seems that the only way is to output text with h().
Here they ask a similar question: https://stackoverflow.com/a/13169051/902780
I'm working on Jdeveloper version 11.1.1.7.0. I am using component 'inputComboboxListOfValues'.
For my requirement I do not need the query feature and do not want a link like 'more' or 'search' to appear in the drop down list. Can I remove this search option?
Since I'm not familiar with this component, I searched online. By reading the doc, I guess there is no style attribute to let you simply turn off the search option, but according to this discussion on the oracle forum:
https://community.oracle.com/message/4304673#4304673
It seems you can do some skinning for your component to hide the search option...but I haven't tried it yet.
There is also a link for skinning:
http://jdevadf.oracle.com/adf-richclient-demo/docs/skin-selectors.html
Then search "af:inputComboboxListOfValues".
Not sure if this will work for your jdev version but it works on 11.2.3
http://i.stack.imgur.com/Abwpk.png
Turning off the Search capability for the LOV is done at the View/Attribute level (Select Attribute/List Of Values / UI Hints / Include Search Region = No Search)
set "readOnly=true".
--Peddi
Did you try and set styleclass="noSearch" it should work.
I've got a question in drupal. I have two filters. The values of the 2nd filter depends on what value was chosen in the first filter.
Example.
First filter values : Lakers,Clippers
Second filter values : if Lakers was chosen = KOBE,GASOL
if Clippers was chosen = PAUL,GRIFFIN .
Is there any module that supports this? Or do I have to code this? If I do is there any reference or guide that I could read and follow?
THANKS!
Yes there is
Drupal has a module called hierarchical select.
check this out
https://drupal.org/project/hierarchical_select.
Hope this helps you.
Don't use hierachical select. It is chock full of bugs and since the maintainer went to work for Acquia, he no longer pays any attention to it. You'll have to write some code to make this work using contextual filters.